mapfunctions are the main tools you end up using to manipulate arrays and hashes.
- You can avoid lots of scoping problems by using arrow functions. However you cannot always drop arrow functions into non-arrow function examples. A lot of it has to do with understanding the use of
thisfor scoping. Many times if something is not working as expected, sit back and evaluate your scope.
- If you need to grab a JSON representation of an object
JSON.stringify(emberModelObject);can be your friend, at least in Ember.