0.0.1 • Published 7 years ago

extended-sorted-array v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

extended-sorted-array

Extend sorted-cmp-array with contains and get.

Installation

$ npm install extended-sorted-array

API

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.

0.0.1

7 years ago