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

lte

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

Compare two numbers and return true if first is less than or equal to second.

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

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

§Parameters

§
second: number
[src]

§Return Type

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