Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

divides

import { divides } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/number.ts";

Return true if first evenly divides second.

@example
import * as N from "./number.ts";
import { pipe } from "./fn.ts";

const result1 = pipe(2, N.divides(3)); // false
const result2 = pipe(2, N.divides(4)); // true
function divides(second: number): (first: number) => boolean;
§
divides(second: number): (first: number) => boolean
[src]

§Parameters

§
second: number
[src]

§Return Type

§
(first: number) => boolean
[src]