Skip to main content
Module

x/ramda/internal/_functionsWith.js

:ram: Practical functional Javascript
Very Popular
Go to Latest
File
import _filter from './_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. */export default function _functionsWith(fn) { return function(obj) { return _filter(function(key) { return typeof obj[key] === 'function'; }, fn(obj)); };}