• Converts value to an array.

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 7,022 bytes
    • Micro-dash: 206 bytes

    Parameters

    • value: string

    Returns string[]

  • Type Parameters

    • T extends readonly any[]

    Parameters

    • value: T

    Returns T

  • Type Parameters

    • T extends object

    Parameters

    • value: T

    Returns T[keyof T][]

  • Parameters

    • value: Nil | Primitive

    Returns []

  • Parameters

    • value: any

    Returns any[]