UNPKG

442 BJavaScriptView Raw
1var _filter =
2/*#__PURE__*/
3require("./_filter");
4/**
5 * @private
6 * @param {Function} fn The strategy for extracting function names from an object
7 * @return {Function} A function that takes an object and returns an array of function names.
8 */
9
10
11function _functionsWith(fn) {
12 return function (obj) {
13 return _filter(function (key) {
14 return typeof obj[key] === 'function';
15 }, fn(obj));
16 };
17}
18
19module.exports = _functionsWith;
\No newline at end of file