Added some tests

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

View File

@ -6,8 +6,8 @@ Use `Array.forEach()` to return a `function` that uses `Function.apply()` to app
const bindAll = (obj, ...fns) =>
fns.forEach(
fn =>
(obj[fn] = function() {
return fn.apply(obj);
(f = obj[fn], obj[fn] = function() {
return f.apply(obj);
})
);
```