Function asArray

Returns x if x is an array, otherwise returns [] (empty array).

  • Parameters

    • x: unknown

    Returns unknown[]