A small TypeScript utility library to complement lodash.
Lightdash is a utility library aiming to complement lodash, written in TypeScript.
Installation:
npm install lightdash
When using ES Modules:
import { groupMapBy } from "lightdash";
groupMapBy([1, 2, 3, 4, 5], (val) => val % 2);
When using CommonJS (e.g. Node):
const { groupMapBy } = require("lightdash");
groupMapBy([1, 2, 3, 4, 5], (val) => val % 2);
Contributions are always welcome, no matter if you have a request, an idea, found a bug, or spotted a typo: Feel free to create a PR or open an issue!
Generated using TypeDoc