@pengzhanbo/utils - v3.7.3
    Preparing search index...

    Function isArray

    • Checks if the input is an array.

      检查输入是否为数组。

      Type Parameters

      • T

        The type of elements in the array / 数组元素的类型

      Parameters

      • v: unknown

        The value to check. 要检查的值

      Returns v is T[]

      True if the value is an array, false otherwise. 如果值为数组则返回 true,否则返回 false

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