• Checks whether the given input is already an array, and if it isn't, wraps it in one.

    Type Parameters

    • T = unknown

    Parameters

    • maybeArray: T | T[]

      Input to turn into an array, if necessary

    Returns T[]

    The input, if already an array, or an array with the input as the only element, if not

Generated using TypeDoc