ExtremeJS Utilities
npm install @extremejs/utilsModern TypeScript utilities inspired by lodash,
aiming to be high performance while having minimal size impact.















- Installation
- NPM
- PNPM
- Yarn
- Usage
- Notes
- Versioning
- Authors
- License
``shell`
npm i @extremejs/utils
`shell`
pnpm add @extremejs/utils
`shell`
yarn add @extremejs/utils
`typescript
import { sumByFn } from "@extremejs/utils";
// or
import { sumByFn } from "@extremejs/utils/sum-by-fn";
const sum = sumByFn([{ a: 1 }, { a: 2 }, { a: 3 }], ({ a }) => a);
`
> API usage documents are available here.
1. Although this package is inspired by lodash,Array
the method names might not be exactly the same or have different usage API,
so make sure to read the docs first before using it.
2. The methods do not type check at runtime
(e.g. The chunk method assumes the size parameter is always a valid positive integer)documents
so make sure you pass the correct values based on the /typescript` types.
We use SemVer for versioning.
For the versions available, see the releases on this repository.
- Ardalan Amini - _Core Maintainer_ - @ardalanamini
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details.