Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rockostrich
on June 20, 2017
|
parent
|
context
|
favorite
| on:
Connect: behind the front-end experience
If you were trying to create a generalized getDistance function then the former would be preferred, but for this specific use case the latter outperforms the former by 2 orders of magnitude:
https://jsperf.com/reduce-vs-standard/1
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: