Skip to content
/ bind Public

Bind with partial application and memoization

License

Notifications You must be signed in to change notification settings

dlmanning/bind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@dlmanning/bind

Bind and partially apply functions with memoization.

Install

npm install @dlmanning/bind

Usage

const bind = require('@dlmanning/bind')

function fn (str) {
  console.log(this + ' ' + str)
}

const hi = bind('hello', fn)

hi('world') // => hello world

const yo = hi.partial('earth')

yo() // => hello earth

API

See API.md for detailed documentation.

License

ISC

About

Bind with partial application and memoization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published