deno.land / x / rambda@v9.1.1 / source / bind.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
import { curryN } from './curryN.js'
export function bind(fn, thisObj){ if (arguments.length === 1){ return _thisObj => bind(fn, _thisObj) }
return curryN(fn.length, (...args) => fn.apply(thisObj, args))}
rambda

Version Info

Tagged at
2 months ago