Travis build: 1447 [cron]
This commit is contained in:
8
test/bindAll/bindAll.js
Normal file
8
test/bindAll/bindAll.js
Normal file
@ -0,0 +1,8 @@
|
||||
const bindAll = (obj, ...fns) =>
|
||||
fns.forEach(
|
||||
fn =>
|
||||
(obj[fn] = function() {
|
||||
return fn.apply(obj);
|
||||
})
|
||||
);
|
||||
module.exports = bindAll
|
||||
Reference in New Issue
Block a user