• Always return Array. In some cases(Joomla Mootools) Array.from can be replaced to some bad implementation.

    Type Parameters

    • T

    Parameters

    • arrayLike: ArrayLike<T>

    Returns T[]

  • Always return Array. In some cases(Joomla Mootools) Array.from can be replaced to some bad implementation.

    Type Parameters

    • T

    • U

    Parameters

    • arrayLike: ArrayLike<T>
    • mapfn: ((v: T, k: number) => U)
        • (v: T, k: number): U
        • Parameters

          • v: T
          • k: number

          Returns U

    • Optional thisArg: any

    Returns U[]

  • Always return Array. In some cases(Joomla Mootools) Array.from can be replaced to some bad implementation.

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T> | ArrayLike<T>

    Returns T[]

  • Always return Array. In some cases(Joomla Mootools) Array.from can be replaced to some bad implementation.

    Type Parameters

    • T

    • U

    Parameters

    • iterable: Iterable<T> | ArrayLike<T>
    • mapfn: ((v: T, k: number) => U)
        • (v: T, k: number): U
        • Parameters

          • v: T
          • k: number

          Returns U

    • Optional thisArg: any

    Returns U[]

Jodit PRO

If you like Jodit - try Jodit PRO