UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

17 lines (14 loc) 330 B
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 };