UNPKG
cli-legend
Version:
latest (1.0.0)
1.0.0
"A fun command-line rogurelike dungeon game"
github.com/SamparkBhol/roguemaze
SamparkBhol/roguemaze
cli-legend
/
RogueMaze
/
node_modules
/
rxjs
/
src
/
internal
/
util
/
isFunction.ts
8 lines
(7 loc)
•
210 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
/** * 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'
; }