Options
All
  • Public
  • Public/Protected
  • All
Menu

Module toArray

Index

References

Functions Lang

References

Renames and re-exports __type

Lang Functions

  • toArray(value: any): any
  • Converts value to an array.

    since

    5.6.0

    example
    toArray({ 'a': 1, 'b': 2 })
    // => [1, 2]

    toArray('abc')
    // => ['a', 'b', 'c']

    toArray(1)
    // => []

    toArray(null)
    // => []

    Parameters

    • value: any

      The value to convert.

    Returns any

    Returns the converted array.