yet-another-lodash-mixins
v0.1.3
Published
Yet Another Lodash Mixins. Mixins i use in my pet-projects
Downloads
4
Readme
lodash-mixins
Yet Another Lodash Mixins. Mixins i use in my pet-projects
[immutabilize] [custom] [wrappers]
spliceStr(str, start, len, replacer)
— immutable splicemerged(o1, o2)
— immutable mergeset_(o, path)
— immutable setmergedDeep(o1, path, o2)
— immutable merge object by pathconcatArrDeep(o, path, arr)
— immutable concat array by pathfilteredDeep(o, path, fn)
— immutable filter by pathforDo(o, key, val, cb)
— [custom] run callback for matched valuesomitEvery(o, keys)
— omit for collection (omit keys in every object-item of array)mappedValuesFn(o, map)
— map values by custom map function. Wheremap
is anObject {key:(oldVal)=>'newVal'}
camelizeKeys
— [wrappers] camelize keys in object. humpsmappedKeys(o, map)
— [wrappers] custom declarative map keys. Wheremap
is anObject {oldKey:'newKey'}
. remap-keys