typicaljoe / taffydb

TaffyDB - an open source JavaScript Database for your browser
http://taffydb.com
MIT License
2.21k stars 285 forks source link

prevent exception when using leftnocase,,likenocase etc #87

Open areel opened 10 years ago

areel commented 10 years ago

Fixes following issue: // Note: last city added has null value for name var cities = TAFFY([{name:"New York",state:"WA"},{name:"Las Vegas",state:"NV"},{name:null,state:"MA"}]);

// Query for cities whose name starts with N or n cities({name:{leftnocase:'n'}}).get();

TypeError: Cannot read property 'toLowerCase' of null