Freshbooks - Sponsor
Netlify — Sponsor
Netlify is the best way to deploy and host a front-end website. All the features developers need right out of the box: Global CDN, Continuous Deployment, one click HTTPS and more. Hit up netlify.com/syntax for more info.
They are also hiring! netlify.com/careers
For the docs for all these, just google
mdn and the method you are looking for 😃
- Why are these great?
- They are chainable
- Truthy or Falsy
- .reduce() - returns any shape! filter, create a new shape, add up numbers...
- Side effects
- can be used as a short circuit forEach
- .includes() (why not contains?)
- Array.from() takes a secondary map arg
- Array spread - converts iterable to array
- Array spread - Concats arrays
- Array Spread + Slice. Don't splice - remove an item from an array.
- Object Spread
- Function Rest
- Object.assign() - no longer needed because you can object spread