πŸŽ‰ Pro trial β€” 14 days remaining Keep Pro β€” €9.99/mo or €99/year β†’
20 JavaScript Array and Object Methods to make you a better developer β€” Syntax - Tasty Web Development Treats
Syntax - Tasty Web Development Treats

20 JavaScript Array and Object Methods to make you a better developer

55 min
0:00--:--
Listen on

Show Notes

Wes and Scott rattle through ~20 different Object and Arra Methods that will make you a better JavaScript developer.

Freshbooks - Sponsor

This is episode Wes mentions the free bookΒ Breaking The Time Barrier. Get a 30 day free trial of Freshbooks atΒ freshbooks.com/syntax.

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

Show Notes

For the docs for all these, just googleΒ mdnΒ and the method you are looking for πŸ˜ƒ

3:00

  • Why are these great?
  • They are chainable
  • Immutable

5:30

  • .filter()
  • Truthy or Falsy

8:00

  • .map()

10:00

  • .reduce() - returns any shape! filter, create a new shape, add up numbers...

14:30

  • .forEach()
  • Side effects

16:00

  • .some()
  • can be used as a short circuit forEach

25:00

  • .every()
  • .includes() (why not contains?)

26:00

  • Array.from()
  • Array.from() takes a secondary map arg
  • Array.of()

29:00

  • Object.values()
  • Object.keys()
  • Object.entries()

32:00

  • Array spread - converts iterable to array
  • Array spread - Concats arrays
  • Array Spread + Slice. Don't splice - remove an item from an array.

34:00

  • Object Spread

37:00

  • Function Rest

39:00

  • Object.freeze()

40:00

  • Object.seal()

41:00

Shameless Plugs Tweet us your tasty treats!
Syntax - Tasty Web Development Treats
1023 episodes
All episodes