UNPKG
star-wh
Version:
latest (1.0.0)
1.0.0
star-wh
/
bin
/
node_modules
/
rxjs
/
src
/
internal
/
util
/
isArray.ts
2 lines
(1 loc)
•
112 B
text/typescript
View Raw
1
2
export
const
isArray = (
() =>
Array
.
isArray
|| (<T>(
x
:
any
): x is T[] => x &&
typeof
x.
length
===
'number'
))();