|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
330 bytes
|
| Line | |
|---|
| 1 | import { isFunction } from '../../predicate/isFunction.mjs';
|
|---|
| 2 |
|
|---|
| 3 | function functionsIn(object) {
|
|---|
| 4 | if (object == null) {
|
|---|
| 5 | return [];
|
|---|
| 6 | }
|
|---|
| 7 | const result = [];
|
|---|
| 8 | for (const key in object) {
|
|---|
| 9 | if (isFunction(object[key])) {
|
|---|
| 10 | result.push(key);
|
|---|
| 11 | }
|
|---|
| 12 | }
|
|---|
| 13 | return result;
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | export { functionsIn };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.