2.2.0 β’ Published 2 years ago
rhodash v2.2.0
rhodash (Οπ)
A deadly simple alternative to lodash.
Feature
- π No dependencies
- β‘οΈ Lightweight
- πͺ Typescript first(written in TypeScript and suitable for TypeScript users)
- π Tree shakable
- π JSDoc available (easy to use).
- πΊοΈ Sourcemap and declarationMap is available (You can jump directly to the
.ts
file of this library instead ofd.ts
).
Install
npm install rhodash
# or yarn add rhodash
Usage
You can simply try here.
ES Module
import { pick, omit } from 'rhodash'
pick({ a: 1, b: 2, c: 3 }, ['a', 'b']) // { a: 1, b: 2 }
omit({ a: 1, b: 2, c: 3 }, ['a', 'b']) // { c: 3 }
CommonJS
const { pick, omit } = require('rhodash')
pick({ a: 1, b: 2, c: 3 }, ['a', 'b']) // { a: 1, b: 2 }
omit({ a: 1, b: 2, c: 3 }, ['a', 'b']) // { c: 3 }
Browser
<script src="https://unpkg.com/rhodash@2.2.0"></script>
<script>
document.write(rhodash.pick({ a: 1, b: 2, c: 3 }, ['a', 'b']))
</script>
API
You can see utility methods document here.
Comparison
Β | rhodash | Lodash | just | rambda |
---|---|---|---|---|
οΈπ¦οΈ Size of whole the package | -You should install each packages one by one. | |||
π Easy-to-understand JSDoc | β (It has both description and example) | β | β | :warning: (It only has description) |
π¦ Ease of jumping to the original source | π | π€(You can, but it is complex) | β | β |
:pencil2: Remarks | This library | Most popular, but huge. | You need to install the corresponding packages one by one. It will increase the number of lines in package.json. | Designed for functional programming, so it has many extra functions for those who do not need functional programming. In addition, some of the functions have a different API than Lodash's |
2.2.0-beta.1
2 years ago
2.2.0
2 years ago
2.1.0
2 years ago
1.6.0
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
2.0.0
2 years ago
1.6.0-beta.0
2 years ago
1.4.0
3 years ago
1.3.4
3 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.0-next.16
3 years ago
1.0.0-next.15
3 years ago
1.0.0-next.14
3 years ago
1.0.0-next.13
3 years ago
1.0.0-next.12
3 years ago
1.0.0-next.11
3 years ago
1.0.0-next.10
3 years ago
1.0.0-next.9
3 years ago
1.0.0-next.8
3 years ago
1.0.0-next.7
3 years ago
1.0.0-next.6
3 years ago
1.0.0-next.5
3 years ago
1.0.0-next.4
3 years ago
1.0.0-next.3
3 years ago
1.0.0-next.2
3 years ago
1.0.0-next.1
3 years ago