npm.io
2.0.0 • Published 1 year ago

jinqu-array-extensions

Licence
MIT
Version
2.0.0
Deps
1
Size
11 kB
Vulns
0
Weekly
0

jinqu-array-extensions - Jinqu Array Prototype Extensions

Build Status Coverage Status npm version Known Vulnerabilities

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.

Keywords