2.2.0 β€’ Published 2 years ago

rhodash v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rhodash (ΟπŸƒ)

CI codecov Version npm.io npm.io License: MIT

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).

image

  • πŸ—ΊοΈ Sourcemap and declarationMap is available (You can jump directly to the .ts file of this library instead of d.ts).

jump-to-ts-file

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

Β rhodashLodashjustrambda
οΈπŸ“¦οΈ Size of whole the packagenpm.ionpm.io-You should install each packages one by one.npm.io
πŸ“š 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: RemarksThis libraryMost 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