moneylog icon indicating copy to clipboard operation
moneylog copied to clipboard

Considere não usar for loops

Open aureliojargas opened this issue 7 years ago • 0 comments

Use Array.forEach, Array.map e Array.filter.

Sobre:

  • http://www.codereadability.com/coding-without-loops/
  • https://www.sitepoint.com/quick-tip-stop-writing-loops-start-thinking-with-maps/

Polyfills para IE < 9:

  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach#polyfill
  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Polyfill
  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#polyfill

aureliojargas avatar Jan 26 '18 20:01 aureliojargas