sjlu / cities

Lookup cities based on zipcodes or GPS coordinates
https://www.npmjs.com/package/cities
27 stars 15 forks source link

use lodash's find and filter #7

Closed talon closed 9 years ago

talon commented 9 years ago

Lodash's find and filter methods have all sorts of nifty features like passing in an object with multiple properties or a function to define your own find and filter logic.

sjlu commented 9 years ago

Interesting. I'm also kind of curious about the performance of _.filter. I'll sleep on it and (probably) merge it in.

talon commented 9 years ago

Unfortunately https://lodash.com/benchmarks is down right now. But lodash is super fast.

niftylettuce commented 9 years ago

:+1:

sjlu commented 9 years ago

Merged.

talon commented 9 years ago

thank you!