alodash

simple proxy that promise-enables lodash functions

Downloads
7
Stars
6
Committers
1

alodash

Just a tiny proxy to promise-enable lodash functions

example

Simply add an a to the lodash function you want to use:


const { aget } = require('alodash');

const promise = Promise.resolve({some:{deeply:{nested:{prop:1}}}});

const value = await aget(promise, 'some.deeply.nested.prop');
console.log(value);  // 1

Any of the function parameters can be a value, a promise, or function.