A lightweight TypeScript utility library to complement lodash.
Lightdash is an extensive object of utility functions to complement lodash written in TypeScript, designed to be lightweight and modern.
An utility library built on top of lodash, complementing it.
A standalone utility library to replace lodash.
Installation:
npm install lightdashWhen Using ES Modules:
import { groupMapBy } from "lightdash";
groupMapBy([1, 2, 3, 4, 5], val => val % 2);When using CommonJS (Node):
const { groupMapBy } = require("lightdash");
groupMapBy([1, 2, 3, 4, 5], val => val % 2);Breaking:
- Made the library complement lodash rather than replace it. All duplicate methods have been removed.
Breaking:
- changed entry iteration from key,val,index,object to val,key,object
- removed isArray and strFromCamelCase (use Array.isArray and strFromPascalCase instead)
- removed "immediate" param for fn* methods
Breaking:
- Merged arrRemoveItem and arrRemoveItemFirst
- Removed isArguments and isNull
- Removed numSum, numMedian and numAverage
- Removed fnCurry
- Removed hasPath
Contributions are always welcome, no matter if you have a requests, an idea, found a bug, or spotted a typo: Feel free to create a PR or open an issue!