UNPKG

es-toolkit

Version:

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

11 lines (8 loc) 215 B
import { keys } from './keys.mjs'; function functions(object) { if (object == null) { return []; } return keys(object).filter(key => typeof object[key] === 'function'); } export { functions };