@iap Packages
    Preparing search index...

    Function toArray

    • 将单个值或数组统一转换为数组

      Type Parameters

      • T

      Parameters

      • value: T | T[]

      Returns T[]

      toArray('hello')      // ['hello']
      toArray(['a', 'b']) // ['a', 'b']