isArray

确定一个值是否为数组。

基本用法

传入一个值,获取一个布尔值,告诉你该值是否为数组。

import { isArray } from 'radash'

isArray('hello') // => false
isArray(['hello']) // => true