Hex Core JS
    Preparing search index...

    Function asArray

    • If the given value is an array, then value is returned, otherwise an array containing value is returned.

      Useful when an array is expected but a single element might be given instead.

      Type Parameters

      • T

      Parameters

      • value: T | T[]

        The value to convert to an array.

      Returns T[]