Skip to content

nthRoot function fails in MSIE 11 #480

@Frodojj

Description

@Frodojj

When math.nthRoot is called from Math.js version 2.3.0, MSIE 11 throws TypeError: Object doesn't support property or method 'isFinite'. This can be fixed easily with a simple polyfill from MDN (public domain):

Number.isFinite = Number.isFinite || function (value) {
    "use strict";
    return typeof value === "number" && isFinite(value);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions