3 ms·
After almost a decade doing python, I'd probably use a plain loop like this but with ".get(key, default)"
by Izkata 5y ago
After almost a decade doing python, I'd probably use a plain loop like this but with ".get(key, default)"
- mcv 5y agoWith the recent changes in Javascript, I've developed an aversion to old fashioned for-loops. I prefer to .map.reduce.filter and if absolutely necessary, .forEach my way through the problem.