| Server IP : 203.96.225.131 / Your IP : 216.73.216.19 Web Server : nginx/1.24.0 System : Linux iot1 6.8.0-151-generic #151-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 11 01:28:36 UTC 2026 x86_64 User : papel ( 1002) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /dma/project-211/project/mapbd/node_modules/require/node_modules/std/ |
Upload File : |
/*
Example usage:
var obj = {
setTime: function(ts) { this._time = ts }
}
each([obj], call('setTime', 1000))
*/
var slice = require('./slice')
module.exports = function call(methodName /*, curry1, ..., curryN */) {
var curryArgs = slice(arguments, 1)
return function futureCall(obj) {
var fn = obj[methodName],
args = curryArgs.concat(slice(arguments, 1))
return fn.apply(obj, args)
}
}