Function toArray

Returns x if x is an array.

  • Parameters

    • x: unknown

    Returns undefined | unknown[]