Mangler natives - DarthJDG/Mangler.js GitHub Wiki
This optional module adds iterators, cloners and getters for native JavaScript object types. Mangler.js has built-in support for Object, Array, Date, ManglerObject and all primitive types, which is sufficient for most cases, e.g. for processing JSON data and object literals. You only need this module if you're using typed arrays or boxed primitives.
To use this module, include mangler-natives.js anywhere after mangler.js.
Typed arrays
Adds iterator, clone and get:
- Float32Array
- Float64Array
- Int8Array
- Int16Array
- Int32Array
- Uint8Array
- Uint16Array
- Uint32Array
- Uint8ClampedArray
Boxed primitives
Adds clone:
- Boolean
- Number
- String
Others
Adds clone:
- RegExp
- Error