var _ = require('ls-lodash'),
merged = _.safeMerge({},{});
_.currySeal(func, maxArgs)
func
(Function) The function to curry and sealmaxArgs
(Number) Max number of total args to applyfunc
with (also arity)
(Object): Returns a new object with keys/properties of the results of each callback
execution.
_.mapKeys(object, [callback], [thisArg])
object
(...Object) The object over which to iterate.[callback]
(Function) The function called per iteration.[thisArg]
(*) Thethis
binding ofcallback
(Object): Returns a new object with keys/properties of the results of each callback
execution.
Similar to _.mapValues
See https://lodash.com/docs#mapValues
_.safeMerge([source], [callback], [thisArg])
[source]
(...Object) The source objects[callback]
(Function) The function to customize merging properties[thisArg]
(*) Thethis
binding ofcallback
(Object): Returns a new object with source objects merged
Effectively equivalent to _.partial(_.merge, {})
;
See https://lodash.com/docs#merge
_.seal(fn, [prefixArgs], maxArgs, [suffixArgs], [thisArg])
fn
(Function) The function to partially apply and seal.[prefixArgs]
(Array) Arguments to be partially applied left.maxArgs
(Number) The number of arguments to accept into partially applied function.[suffixArgs]
(Array) Arguments to be partially applied right.[thisArg]
(*) Context in which to runfn
(Function) Partially applied function, optionally bound to thisArg
, that accepts a max of count
more args.
Async q-based version of _.filter
_.qFilter(collection, predicateFn, [thisArg])
collection
(Array|Object) The collection to asynchronously filterpredicateFn
(Function) Function which returns a promise that resolves to a boolean[thisArg]
(Object) Thethis
binding ofpredicateFn
(Promise) Promise which resolves to the filtered array (just as lodash would perform the filter)