Function none

Returns true if none of the elements in the array satisfy the predicate function.

none((x: number) => x > 2)([1, 2, 3]) // false
none((x: number) => x > 2)([1, 2]) // true
none((x: number) => x > 2)([]) // true
  • Type Parameters

    • A

    Parameters

    • fn: ((value: A) => boolean)
        • (value): boolean
        • Parameters

          • value: A

          Returns boolean

    Returns (<S>(source: S) => boolean)

      • <S>(source): boolean
      • Type Parameters

        • S extends readonly A[]

        Parameters

        • source: S

        Returns boolean