Mangler() - DarthJDG/Mangler.js GitHub Wiki

The main entry point of the library, returns a mangler object built from the passed items.

Mangler([item])
Parameter Type Default Description
item Any
Array
Item or array of items to add.

Returns

Returns a newly created mangler object instance.


The item parameter is added via the .add() method. If called without parameters or an empty array, an empty mangler object will be created and returned. Mangler(item) is identical to Mangler().add(item).

To access the items contained in a mangler object directly, read the .items[ ] array.

⚠️ **GitHub.com Fallback** ⚠️