jinqu-array-extensions

Jinqu Array Prototype extensions.

Usage no npm install needed!

<script type="module">
  import jinquArrayExtensions from 'https://cdn.skypack.dev/jinqu-array-extensions';
</script>

README

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.