linq-to-objects

Linq for javascript

Usage no npm install needed!

<script type="module">
  import linqToObjects from 'https://cdn.skypack.dev/linq-to-objects';
</script>

README

The lastest version of this document is available on Github > linq-to-objects

linq-to-objects

Implements linq for javascript

Installation

npm install linq-to-objects --save

OR

yarn add linq-to-objects --save

References in NodeJs

require("linq-to-objects");

References in browser after install

<script src="./node_modules/linq-to-objects/distrib/linq-to-objects.min.js"></script>

For IE only (>=10), you need to add this polyfill script

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js"></script>

References in browser without install

<script src="https://cdn.jsdelivr.net/npm/linq-to-objects/distrib/linq-to-objects.min.js"></script>

Table Of Contents

Note See the complete documentation on Github > linq-to-objects

Array Extension

  • add
  • addRange
  • aggregate
  • all
  • any
  • average
  • clear
  • concat
  • count
  • distinct
  • equals
  • first
  • firstOrDefault
  • insertAt
  • insertRangeAt
  • getRange
  • groupBy
  • innerJoin
  • intersect
  • last
  • lastOrDefault
  • min
  • max
  • orderBy
  • orderByDescending
  • removeAll
  • removeAt
  • removeRange
  • reverse
  • selectNew
  • skip
  • skipWhile
  • sum
  • takeWhile
  • union
  • whileIndex
  • where