Skip to main content
Module

x/fun/number.ts>lte

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function lte
import { lte } from "https://deno.land/x/fun@v2.0.0/number.ts";

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

Examples

Example 1

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

Parameters

second: number

Returns

(first: number) => boolean