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

mod

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

Return the positive modulus of two numbers.

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

const result = pipe(11, N.mod(2)); // 1
function mod(second: number): (first: number) => number;
§
mod(second: number): (first: number) => number
[src]

§Parameters

§
second: number
[src]

§Return Type

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