Skip to content

isArray

检查 value 是否是 Array 类对象。

添加版本

1.0.0

使用

html
<script setup>
  import { isArray, noop } from '@ryxon/utils'

  isArray([1, 2, 3])
  // => true

  isArray(document.body.children)
  // => false

  isArray('abc')
  // => false

  isArray(noop)
  // => false
</script>

API

参数

参数说明类型默认值
value要检查的值--

Released under the MIT License.