You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
550 B

1 month ago
  1. import arrayFilter from './_arrayFilter.js';
  2. import isFunction from './isFunction.js';
  3. /**
  4. * The base implementation of `_.functions` which creates an array of
  5. * `object` function property names filtered from `props`.
  6. *
  7. * @private
  8. * @param {Object} object The object to inspect.
  9. * @param {Array} props The property names to filter.
  10. * @returns {Array} Returns the function names.
  11. */
  12. function baseFunctions(object, props) {
  13. return arrayFilter(props, function(key) {
  14. return isFunction(object[key]);
  15. });
  16. }
  17. export default baseFunctions;