Added some tests

This commit is contained in:
Angelos Chalaris
2018-01-28 16:28:54 +02:00
parent 5358f1b908
commit 06d7e04220
19 changed files with 257 additions and 33 deletions

View File

@ -1,8 +1,8 @@
const bindAll = (obj, ...fns) =>
fns.forEach(
fn =>
(obj[fn] = function() {
return fn.apply(obj);
(f = obj[fn], obj[fn] = function() {
return f.apply(obj);
})
);
module.exports = bindAll