UNPKG

perlica

Version:

<h1 align="center">Perlica</h1>

27 lines (25 loc) 670 B
// src/Predicate/index.ts var isBigInt = (value) => typeof value === "bigint"; // src/Predicate/BigInt.ts var isPositive = (value) => value > 0; var isNonNegative = (value) => value >= 0; var isNegative = (value) => value < 0; var isNonPositive = (value) => value <= 0; var multipleOf = (that) => (value) => value % that === 0n; var lt = (that) => (value) => value < that; var gt = (that) => (value) => value > that; var le = (that) => (value) => value <= that; var ge = (that) => (value) => value >= that; var isBigInt2 = isBigInt; export { ge, gt, isBigInt2 as isBigInt, isNegative, isNonNegative, isNonPositive, isPositive, le, lt, multipleOf };