re: Useful JS functions you aren't using: Array.filter VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Quick Fix to get this example working: students .map(s => Object.assign({}, s, {age: parseInt(s.age, 10) + 1})) .filter(s => s.age < ...
 

Sure, although I'd argue that a better approach would be to represent the age as an integer in the data structure. Especially if the program is planning to perform arithmatic on it! :)

code of conduct - report abuse