UNPKG

es-suite

Version:

ES helper functions from ES5 shim with no dependencies

11 lines (7 loc) 620 B
Minimalistic helper library of ES `is` and `to` functions from ES5-shim with no dependencies. Works from ES3+ Defines a single self-contained object, `ES`, that can be inlined as a module in any script without external dependencies. The functions defined therein are ~40% more performant than the eponymous npm es-shim methods, and take up half the filesize. Axiomatic functions, accessed by `ES.{function name}`: is, isActualNaN, isArguments, isArray, isCallable, isDDA, isES6ClassFn, isPrimitive, isNullish, isString, isRegex, isWindow, ToObject, ToNumber, ToUint32, ToInteger, ToPrimitive, ToSoftInteger