a guest Jan 18th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- dogsAgeSum = animais.filter((animal) => animal.tipo === 'cao')
- .map((cao) => cao.idade *= 7)
- .reduce((total, cao) => total += cao)
RAW Paste Data