repl.txt (687B)
1 2 {{alias}}( fcn, ...args ) 3 Returns a function of smaller arity by partially applying arguments. 4 5 The implementation does not set the `length` property of the returned 6 function. Accordingly, the returned function `length` is always zero. 7 8 The evaluation context is always `null`. 9 10 Parameters 11 ---------- 12 fcn: Function 13 Function to partially apply. 14 15 args: ...any 16 Arguments to partially apply. 17 18 Returns 19 ------- 20 out: Function 21 Partially applied function. 22 23 Examples 24 -------- 25 > function add( x, y ) { return x + y; }; 26 > var add2 = {{alias}}( add, 2 ); 27 > var sum = add2( 3 ) 28 5 29 30 See Also 31 -------- 32