ran npm run tdd
This commit is contained in:
5
test/functions/functions.js
Normal file
5
test/functions/functions.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = functions = (obj, inherited = false) =>
|
||||
(inherited
|
||||
? [...Object.keys(obj), ...Object.keys(Object.getPrototypeOf(obj))]
|
||||
: Object.keys(obj)
|
||||
).filter(key => typeof obj[key] === 'function');
|
||||
Reference in New Issue
Block a user