2.0.0 • Published 9 months ago

@jin-qu/array-extensions v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

jinqu-array-extensions - Jinqu Array Prototype Extensions

Build and Test codecov Codacy Badge

npm version npm downloads

GitHub issues GitHub license GitHub stars GitHub forks

Jinqu no longer injects methods into Array Prototype, this repository will provide the functionality.

Installation

npm i jinqu-array-extensions

Usage

You only need to import the package, Jinqu query methods will be attached to Array Prototype.

import 'jinqu-array-extensions';

const arr = [1, 2, 3];
// arr.asQueryable() is not needed.
const first = arr.first();

// if you don't want to use extension methods
// and think "asQueryable" is too long, you can use "q"
const last = arr.q().last();

License

jinqu-array-extensions is under the MIT License.

2.0.0

9 months ago