UNPKG

cli-legend

Version:

"A fun command-line rogurelike dungeon game"

8 lines (7 loc) 210 B
/** * Returns true if the object is a function. * @param value The value to check */ export function isFunction(value: any): value is (...args: any[]) => any { return typeof value === 'function'; }