UNPKG

perlica

Version:

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

63 lines (59 loc) 1.93 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/Predicate/BigInt.ts var BigInt_exports = {}; __export(BigInt_exports, { ge: () => ge, gt: () => gt, isBigInt: () => isBigInt2, isNegative: () => isNegative, isNonNegative: () => isNonNegative, isNonPositive: () => isNonPositive, isPositive: () => isPositive, le: () => le, lt: () => lt, multipleOf: () => multipleOf }); module.exports = __toCommonJS(BigInt_exports); // 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; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { ge, gt, isBigInt, isNegative, isNonNegative, isNonPositive, isPositive, le, lt, multipleOf });