source: node_modules/es-toolkit/dist/compat/object/functions.mjs

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

Added visualizations

  • Property mode set to 100644
File size: 215 bytes
Line 
1import { keys } from './keys.mjs';
2
3function functions(object) {
4 if (object == null) {
5 return [];
6 }
7 return keys(object).filter(key => typeof object[key] === 'function');
8}
9
10export { functions };
Note: See TracBrowser for help on using the repository browser.