repl.txt (843B)
1 2 {{alias}}( fcn, ...args ) 3 Returns a function of smaller arity by partially applying arguments from the 4 right. 5 6 The implementation does not set the `length` property of the returned 7 function. Accordingly, the returned function `length` is always zero. 8 9 The evaluation context is always `null`. 10 11 Parameters 12 ---------- 13 fcn: Function 14 Function to partially apply. 15 16 args: ...any 17 Arguments to partially apply. 18 19 Returns 20 ------- 21 out: Function 22 Partially applied function. 23 24 Examples 25 -------- 26 > function say( text, name ) { return text + ', ' + name + '.'; }; 27 > var toGrace = {{alias}}( say, 'Grace Hopper' ); 28 > var str = toGrace( 'Hello' ) 29 'Hello, Grace Hopper.' 30 > str = toGrace( 'Thank you' ) 31 'Thank you, Grace Hopper.' 32 33 See Also 34 -------- 35