0.1.3 • Published 7 years ago
@gurisko/sorted-array v0.1.3
Sorted Array
An array that keeps its elements sorted with advanced comparison capabilities and a built-in support for an array of objects.
Installation
npm install @gurisko/sorted-arrayAn array that keeps its elements sorted with advanced comparison capabilities and a built-in support for an array of objects.
npm install @gurisko/sorted-arraynew SortedArray([key|compareFn])arr.insert([element1[, ...[, elementN]]])arr.get(index)arr.has(value)arr.search(value)arr.remove(index)arr.removeByValue(value)arr.eq(value)arr.gt(value)arr.gte(value)arr.lt(value)arr.lte(value)arr.toArray()arr.clear()