init
This commit is contained in:
14
node_modules/ramda/es/internal/_functionsWith.js
generated
vendored
Normal file
14
node_modules/ramda/es/internal/_functionsWith.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import _filter from "./_filter.js";
|
||||
/**
|
||||
* @private
|
||||
* @param {Function} fn The strategy for extracting function names from an object
|
||||
* @return {Function} A function that takes an object and returns an array of function names.
|
||||
*/
|
||||
|
||||
export default function _functionsWith(fn) {
|
||||
return function (obj) {
|
||||
return _filter(function (key) {
|
||||
return typeof obj[key] === 'function';
|
||||
}, fn(obj));
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user