extended-sorted-array

0.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i extended-sorted-array

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • chat-wane