extended-sorted-array
v0.0.1
Published
extended version of sorted-cmp-array from nathan7
Downloads
9
Readme
extended-sorted-array
Extend sorted-cmp-array with
contains and get.
Installation
$ npm install extended-sorted-arrayAPI
var SortedArray = require('extended-sorted-array');sortedArray.get(Object) : Object
Search the element in the array using the properties of the object in
argument. Returns the element if it exists, null otherwise.
sortedArray.contains(Object) : Boolean
Return true if the sorted array contains the element in argument;
false otherwise. The function performs a binary search.
