No! Primate Mutation!

    function-bind
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/function-bind package

    1.1.1 • Public • Published

    function-bind

    Implementation of function.prototype.bind

    Example

    I mainly do this for unit tests I run on phantomjs. PhantomJS does not have Function.prototype.bind :(

    Function.prototype.bind = require("function-bind")

    Installation

    npm install function-bind

    Contributors

    • Raynos

    MIT Licenced

    Install

    npm i function-bind

    DownloadsWeekly Downloads

    33,434,052

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • raynos
    • ljharb