UNPKG

loldash

Version:

very serious javascripts

60 lines (32 loc) 2.02 kB
## loldash very serious javascripts play with it here: [www.loldash.com](http://www.loldash.com/) ## wait what? [See here](https://twitter.com/sarah_edo/status/971761942556762112). ## usage ```bash npm install loldash ``` ```javascript import install from "loldash"; install(); ``` ## docs `Array.prototype.eat` - returns an empty array `Array.prototype.floppy` - removes the last three items of the array and returns the removed items `Array.prototype.fry` - adds 325 to every item in the array and returns itself `Array.prototype.ginormous` - increases the size of the array to be `2 ^ array.length` and returns itself `Array.prototype.lubricant` - accepts an integer as a parameter and increase the size of the array to that size and returns itself `Array.prototype.moist` - returns a string of generated JavaScript that returns that array. useful if your code is too DRY `Array.prototype.mushyface` - randomly adds and subtracts numbers from each number in the array without changing the average number of the array and returns itself `Array.prototype.nope` - no operation, just do nothing and returns itself `Array.prototype.pancake` - sugar for calling `smoosh` and `fry` `Array.prototype.rad` - overwrites all the values in the array to be a pretty rad string of hearts, returns itself `Array.prototype.scrunch` - cuts the size in half and combines values of items next to each other and returns itself `Array.prototype.smooosh` - recursively smooshes an array of arrays into one smooshed (or flattened) array, returns itself `Array.prototype.smoosh` - smooshes an array of arrays into one smooshed (or flattened) array, returns itself `Array.prototype.squiggle` - shuffles the array and returns itself `Array.prototype.squirt` - removes a random item in the array and puts it in the previously accessed array and returns itself `Array.prototype.tickle` - coerces all the items in the array to be a different type or value and returns itself ## why would you … YOU'RE NOT MY MOM!