Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marvinhagemeister/smoldash
Smoldash, A tiny lodash alternative built for the modern web
https://github.com/marvinhagemeister/smoldash
javascript lodash smoldash tiny utility
Last synced: 8 days ago
JSON representation
Smoldash, A tiny lodash alternative built for the modern web
- Host: GitHub
- URL: https://github.com/marvinhagemeister/smoldash
- Owner: marvinhagemeister
- License: mit
- Created: 2020-08-20T10:26:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T11:46:49.000Z (over 2 years ago)
- Last Synced: 2025-01-02T12:20:30.225Z (19 days ago)
- Topics: javascript, lodash, smoldash, tiny, utility
- Language: TypeScript
- Homepage:
- Size: 107 KB
- Stars: 109
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-node-esm - smoldash - A tiny lodash alternative built for the modern web (Packages / Functional programming)
README
![Smoldash logo](/smoldash.svg)
![Smoldash bundle size](https://img.badgesize.io/https:/cdn.jsdelivr.net/npm/[email protected]/dist/esm/index.min.js?compression=gzip)
# Smoldash - Tiny 2kb Lodash alternative
_Note: This library hasn't been battle tested yet. There may be bugs, although none have been reported so far._
Lodash is an amazing utility library for JavaScript, but with recent additions to the ECMAScript much of it can be replaced with vanilla features. This library aims to be a thinner alternative with modern browsers in mind.
Supported functions:
- `_.at`
- `_.clone`
- `_.cloneDeep`
- `_.compact`
- `_.every`
- `_.findIndex`
- `_.find`
- `_.filter`
- `_.flatten`
- `_.flow`
- `_.forEach`
- `_.get`
- `_.groupBy`
- `_.has`
- `_.head`
- `_.indexOf`
- `_.isEmpty`
- `_.isEqual`
- `_.kebabCase`
- `_.keyBy`
- `_.map` - only maps arrays
- `_.merge`
- `_.once`
- `_.pickBy`
- `_.range`
- `_.sortBy`
- `_.some`
- `_.take`
- `_.uniqBy`
- `_.uniqueId`## Installation
```bash
npm install smoldash
# or via yarn
yarn add smoldash
```## License
MIT, see [the LICENSE file](./LICENSE)