search-sort

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i search-sort

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • saivarunk