search-sort
v0.1.1
Published
simple search and sorting library for node
Downloads
2
Maintainers
Readme
search-sort module for npm
Usage
npm install search-sort
methods
Linear sort
var Search = require('search-sort');
var num_array = [11,2,3,6,7,9];
var res = Search.linearSearch(7, num_array);
console.log(res); // returns 5 // returns 0 if number dosen't exist