isArray
Determine if a value is an Array
42 bytes
since v12.1.0
Usage
Pass in a value and get a boolean telling you if the value is an Array.
import * as import _
_ from 'radashi'
import _
_.const isArray: <string>(value: string) => value is never
Literally just Array.isArray but with better type inference.
isArray('hello') // => falseimport _
_.const isArray: <string[]>(value: string[]) => value is string[]
Literally just Array.isArray but with better type inference.
isArray(['hello']) // => true