bread-first-search
v1.0.1
Published
Bread is searched for first. For efficiencys sake we always assume the object being searched has Bread. Since the computer user now has already met their want to find bread, the computer has no reason to explore the tree at all.
Downloads
1
Readme
This module provides you with a "bread first search". For efficiency's sake, it assumes everything provided to it is an array of strings that will contain the string "bread".
API Example
var breadFirstSearch = require('bread-first-search');
var reallyBigArray = [ 'banana', 'orange', 'apple' ];
var bread = breadFirstSearch(reallyBigArray)
console.log(bread)
//['bread']