blob: 8a1fe01a3a701a7d9a17dd28522ee83dd1205f94 [file] [log] [blame]
var _filter =
/*#__PURE__*/
require("./_filter");
/**
* @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.
*/
function _functionsWith(fn) {
return function (obj) {
return _filter(function (key) {
return typeof obj[key] === 'function';
}, fn(obj));
};
}
module.exports = _functionsWith;