8000 isInteger ES6 browser support · Issue #8 · alfhen/vue-cookie · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
isInteger ES6 browser support #8
Closed
@timmetj

Description

@timmetj

Hi,

I noticed you use the isInteger function on line 13. But this is not supported by all browsers like IE11 and older.
Is it maybe possible to adjust to make it browser compatible?

possible solution:

Number.isInteger = Number.isInteger || function(value) {
    return typeof value === "number" && 
           isFinite(value) && 
           Math.floor(value) === value;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0