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

    Function init

    • Removes the last element from the list.

      Type Parameters

      • T

      Parameters

      Returns List.List<T>

      The picked list.

      Examples

      expect(init(empty())).toStrictEqual(empty());

      expect(toArray(init(fromArray([5, 2, 1, 3])))).toStrictEqual([5, 2, 1]);