EasyMod.js
EasyMod.js by BonesYT, a library that adds multiple methods into JS!
This adds a lot of methods to: strings, numbers, booleans, bigint, functions, arrays, objects and date!
Version: VU2
Extra Method Functions
Numbers
- add, sub, mul, div, pow, and, or, xor, mod, inv, doub, half, trip, thir, sqr, sqrt, cb, cbrt, bas, nrot, neg, log, log10, log2, logbr, floor, round, ceil, random, clz32, max, min, sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, tanh, asinh, acosh, atanh, sign, abs, trunc, log1p, fround, hypot, imul, eq, ex, gt, gte, lt, lte, comp, isNaN, bool, lfloor, lround, lceil, isInf, isFin, isz, isPos, isNeg, isalt, dti, dtil, array, join, low, infs, toDate, toTimeStr
- Number.: dist
Booleans
- ifelse, sw, number, and, or, xor
- Boolean.: muland, mulor
Strings
- replaceAt, befj, html, html2, reverse, del, fitEnd, fitStart, loopIncludes, heading, change, toClipboard, func, autoCase, argSplit
BigInt
- number, add, sub, mul, div, pow, bas, neg, abs, sign, eq, ex, gt, gte, lt, lte, isz, isPos, isNeg, comp
Functions
- getArgs, getArgsAll, getCommand, addLine
- (The scripts might not work, i'm gonna fix it soon)
Array
- befj, fitEnd, fitStart, valueMap, sum, prod, onlyFirst, onlyLast, gate, onlyAllow
Object
- define, undefine, get, valueMap, gate, onlyAllow, propNames,
Date
- since, daysSinceYear
Any
- switchType
EasyObj
- EasyObj is an object with abilities.
- define, undefine, isDefined, get, createMethod, isConst