• Creates a Predicate that checks if a number is divisible by a given divider.

    Example

    const isDivisibleBy3 = isDivisibleBy(3);

    const result = isDivisibleBy3(-6);

    console.log(result); // true

    Returns

    the Predicate

    Parameters

    • divider: number

      the divider to use

    Returns Predicate<[number]>

Generated using TypeDoc