alodash

Simple promise proxy for lodash

Usage no npm install needed!

<script type="module">
  import alodash from 'https://cdn.skypack.dev/alodash';
</script>

README

alodash

NPM

Build Status Coverage Status

Just a tiny proxy to promise-enable loash 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.