Documentation
    Preparing search index...
    • Ensure that the input value is converted to an array. If the input value is already an array, it returns the same array. If the input value is not an array, it returns an array containing the input value.

      Type Parameters

      • T

      Parameters

      • value: T

        The value to ensure as an array.

      Returns T extends U[] ? U[] : T[]

      • An array containing the input value.