LendAndRegret/node_modules/es-toolkit/dist/compat/object/functionsIn.mjs
2026-05-02 17:27:43 +08:00

17 lines
330 B
JavaScript

import { isFunction } from '../../predicate/isFunction.mjs';
function functionsIn(object) {
if (object == null) {
return [];
}
const result = [];
for (const key in object) {
if (isFunction(object[key])) {
result.push(key);
}
}
return result;
}
export { functionsIn };