This commit is contained in:
Dawid Dziurla 2020-03-26 15:37:35 +01:00
parent d9becc67b6
commit 9308795b8b
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B
964 changed files with 104265 additions and 16 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));
};
}