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

    Function filter

    • Filters the list items from the head by pred. The elements which satisfy pred are only passed.

      Type Parameters

      • T

      Parameters

      • pred: (element: T) => boolean

        The condition to pick up an element.

      Returns (list: List.List<T>) => List.List<T>

      The filtered list.