Function arrayize

Places value in a new array, if it's not already an array.

  • Type Parameters

    • T

    Parameters

    • Optionalvalue: T | T[]

      to place in a (new) array, if it is not already.

    Returns T[]

    Array If value is not already an Array, it becomes an item of a new array.

    Only exception is if value is undefined or z.NOTHING, then an empty array []is returned instead of[undefined]`(useful for safe iteration).