function-bind
npmv1.1.2Implementation of Function.prototype.bind
Overview
function-bind is an npm package that implementation of Function.prototype.bind. The latest version is 1.1.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need implementation of Function.prototype.bind and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of function-bind.
Dependencies
Dev (9)
Used by
Popular packages that depend on function-bind.
A robust, ES3 compatible, "has own property" predicate.
Get and robustly cache all JS language-level intrinsics at first require time
Set a function's length property
Helper functions around Function call/apply/bind, for use in `call-bind`
Alternatives to function-bind
Robustly `.call.bind()` a function
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Run a function exactly one time
An implementation of WHATWG AbortController interface.
Module that helps you write generated functions in Node
ES2015-compliant shim for Object.is - differentiates between -0 and +0
Matches strings against configurable strings, globs, regular expressions, and/or functions
Set a function's name property
Set a function's length property
Get callsites from the V8 stack trace API
Check if something is a generator function
An implementation of WHATWG EventTarget interface.
Frequently installed together
An AST-based pattern checker for JavaScript.
A simple cache for a few of the JS Error constructors.
string representations of objects in node and the browser
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
`Object.defineProperty`, but not IE 8's broken one.
A robust, ES3 compatible, "has own property" predicate.
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Get and robustly cache all JS language-level intrinsics at first require time
Robustly `.call.bind()` a function
Runtime typescript and ESM support for Node.js
Helper functions around Function call/apply/bind, for use in `call-bind`
Version history
| Version | Published | License |
|---|---|---|
| 1.1.2latest | 2 years ago | MIT |
| 1.1.1 | 9 years ago | MIT |
| 1.1.0 | 10 years ago | MIT |
| 1.0.2 | 11 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.1.0 | 13 years ago | MIT |
Funding
Frequently asked questions
How do I install function-bind?
Run `npm install function-bind` to add function-bind to your npm project.
What license is function-bind released under?
function-bind is distributed under the MIT license.
How popular is function-bind?
function-bind has approximately 0 downloads per week and 2 known dependent packages.