Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiritaniayaka/lodart
https://github.com/kiritaniayaka/lodart
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kiritaniayaka/lodart
- Owner: KiritaniAyaka
- License: mit
- Created: 2024-01-25T10:52:58.000Z (almost 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-07T04:05:16.000Z (12 months ago)
- Last Synced: 2024-02-07T05:25:00.220Z (12 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/lodart
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Lodart
![pub package](https://img.shields.io/pub/v/lodart.svg?logo=dart&logoColor=00b9fc)
![Test workflow](https://github.com/KiritaniAyaka/lodart/actions/workflows/dart.yaml/badge.svg?branch=main)
![Code coverage](https://codecov.io/gh/KiritaniAyaka/lodart/graph/badge.svg)
![Code size](https://img.shields.io/github/languages/code-size/KiritaniAyaka/lodart?logo=github&logoColor=white)Lodart is a Dart utility library like lodash.
The goal of lodart is NOT to implement all methods in lodash because of the difference between Dart and JavaScript.
Lodart aims to implement utilities to make Dart easier to use and keep similar naming styles to lodash.## Installation
Run `dart pub add lodart` in your dart project or `flutter pub add lodart` in flutter project.
## Features
Lodart provides some utilities like lodash includes `List`(`Arrary` in JavaScript) and etc.
## Methods
Here are all the methods included in lodart.
For details, please check [API reference](https://pub.dev/documentation/lodart/latest/).### Collection
- `chunk`
- `dropNull`
- `groupBy`
- `max`
- `maxBy`
- `min`
- `minBy`
- `splice`
- `toAdded`
- `toRemoved`
- `toRemovedAt`
- `toReplaced`
- `toReplacedWhere`
- `toSpliced`
- `unique`
- `uniqueBy`### Number
- `inRange`
## Usage
Import the lodart library and then you can use these extension methods in your project.
See the specific example of every function in the Dart generated documentation.
```dart
import 'package:lodart/lodart.dart';
```