source: node_modules/es-toolkit/dist/compat/object/functionsIn.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 441 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const isFunction = require('../../predicate/isFunction.js');
6
7function functionsIn(object) {
8 if (object == null) {
9 return [];
10 }
11 const result = [];
12 for (const key in object) {
13 if (isFunction.isFunction(object[key])) {
14 result.push(key);
15 }
16 }
17 return result;
18}
19
20exports.functionsIn = functionsIn;
Note: See TracBrowser for help on using the repository browser.