@mikuroxina/mini-fn
    Preparing search index...

    Function fromArray

    • Creates the list of elements from Array.

      Type Parameters

      • T

      Parameters

      • arr: readonly T[]

        The source array.

      Returns List.List<T>

      The list of elements.

      Examples

      expect(toArray(fromArray([2.81, 3.14, 1.58]))).toStrictEqual([2.81, 3.14, 1.58]);
      expect(toArray(fromArray([]))).toStrictEqual([]);