flodash 1.0.1 flodash: ^1.0.1 copied to clipboard
A dart implementation of the popular JavaScript library Lodash
Flodash #
This library is a dart implementation of the popular JavaScript library lodash. It is a collection of utility functions that make it easier to work with collections, objects, numbers, strings, etc.
While this library exposes almost all the functionality of lodash, it is not an exact match. Some functions have been omitted because they are not applicable to dart and some functions have been marked as deprecated because their functionality is already provided by dart itself. For a complete list of the functions that have been omitted, please refer to the omitted functions section.
Usage #
A simple usage example:
import 'package:flodash/flodash.dart' as flodash;
main() {
List<int> list = [1, [2, 3]];
print(flodash.flatten(list)); // [1, 2, 3]
}
Contributing #
If you want to contribute to this project, please read the contributing guidelines.
License #
This project is licensed under the MIT License - see the LICENSE file for details
Omitted functions #
The following functions have been omitted because they are not applicable to dart:
-
Array
- differenceBy
- intersectionBy
- pull
- pullAll
- pullAllBy
- pullAllWith
- pullAt
- unionBy
- unzipWith
- xorBy
- zipWith
-
Collection
- invokeMap