lodash-prototypes v0.3.1
Lodash Prototypes
Add your favorite Lodash methods for Arrays & Strings Because JavaScript should have them by default.
Installation
Import package once on your node server and/or client JavaScript bundle.
Node.js
require('lodash-prototypes');
Babel ES6+
import 'lodash-prototypes';
Usage
String Example:
'helloWorld'.startCase() === 'Hello World'
Available string methods 1. camelCase 1. capitalize 1. deburr 1. escape 1. escapeRegExp 1. kebabCase 1. lowerCase 1. lowerFirst 1. pad 1. snakeCase 1. startCase 1. template 1. toLower 1. toUpper 1. truncate 1. unescape 1. upperCase 1. upperFirst 1. words
Array Example:
[1,2,2].uniq() // [1,2]
Available array methods 1. chunk 1. compact 1. difference 1. differenceBy 1. differenceWith 1. drop 1. dropRight 1. dropRightWhile 1. dropWhile 1. fill 1. findIndex 1. findLastIndex 1. first 1. flatten 1. flattenDeep 1. flattenDepth 1. fromPairs 1. head 1. initial 1. intersection 1. intersectionBy 1. intersectionWith 1. last 1. lastIndexOf 1. nth 1. pull 1. pullAll 1. pullAllBy 1. pullAllWith 1. pullAt 1. remove 1. sortedIndex 1. sortedIndexBy 1. sortedIndexOf 1. sortedLastIndex 1. sortedLastIndexBy 1. sortedLastIndexOf 1. tail 1. take 1. takeRight 1. takeRightWhile 1. takeWhile 1. union 1. unionBy 1. unionWith 1. uniq 1. uniqBy 1. uniqWith 1. unzip 1. unzipWith 1. without 1. xor 1. xorBy 1. xorWith 1. zip 1. zipObject 1. zipObjectDeep 1. zipWith
Happy Coding!