source:
node_modules/es-toolkit/dist/compat/object/functions.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 215 bytes | |
| Line | |
|---|---|
| 1 | import { keys } from './keys.mjs'; |
| 2 | |
| 3 | function functions(object) { |
| 4 | if (object == null) { |
| 5 | return []; |
| 6 | } |
| 7 | return keys(object).filter(key => typeof object[key] === 'function'); |
| 8 | } |
| 9 | |
| 10 | export { functions }; |
Note:
See TracBrowser
for help on using the repository browser.
