This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

14
node_modules/ramda/es/internal/_functionsWith.js generated vendored Normal file
View 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));
};
}