Skip to main content
Module

x/rambda/source/bind.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {curryN} from './curryN'
export function bind(fn, thisObj) { if (arguments.length === 1) { return _thisObj => bind(fn, _thisObj) }
return curryN(fn.length, (...args) => fn.apply(thisObj, args))}