Socket
Book a DemoInstallSign in
Socket

bound-call

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bound-call

πŸ‘” Create a bound call where you can pass 'this' context as an argument

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

bound-call

πŸ‘” Create a bound call where you can pass "this" context as an argument

const bound = require('bound-call');

const toLowerCase = bound('', 'toLowerCase');

['Hello', 'World'].map(toLowerCase); // ['hello', 'world']

Transpiled version

Environments which exclude node_modules from the transpiling pipeline should include the "browser" entry instead of "main". This exposes an ES5 commonjs module.

Also available for explicit import:

const bound = require('bound-call/dist');

Keywords

bind

FAQs

Package last updated on 15 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts