Syntax - Tasty Web Development Treats

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


Listen Later

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

  • Object.assign() - no longer needed because you can object spread
  • Reference vs Copy in JavaScript

    ×SICK×PICKS×
  • Scott: Tea Haus

  • Wes: SOG Folding Knife
  • Wes: Sharpening Stone
  • Shameless Plugs
    • Vue.js for Everyone
    • Wes' Course
    • SMASH that Subscribe Button on Wes' YouTube
    Tweet us your tasty treats!
    • Scott's Instagram
    • LevelUpTutorials Instagram
    • Wes' Instagram
    • Wes' Twitter
    • Wes' Facebook
    • Scott's Twitter
    • Make sure to include @SyntaxFM in your tweets
    ...more
    View all episodesView all episodes
    Download on the App Store

    Syntax - Tasty Web Development TreatsBy Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

    • 4.9
    • 4.9
    • 4.9
    • 4.9
    • 4.9

    4.9

    977 ratings


    More shows like Syntax - Tasty Web Development Treats

    View all
    Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

    Software Engineering Radio - the podcast for professional software developers

    272 Listeners

    Hanselminutes with Scott Hanselman by Scott Hanselman

    Hanselminutes with Scott Hanselman

    383 Listeners

    The Changelog: Software Development, Open Source by Changelog Media

    The Changelog: Software Development, Open Source

    290 Listeners

    Software Engineering Daily by Software Engineering Daily

    Software Engineering Daily

    622 Listeners

    Talk Python To Me by Michael Kennedy

    Talk Python To Me

    584 Listeners

    Soft Skills Engineering by Jamison Dance and Dave Smith

    Soft Skills Engineering

    288 Listeners

    Thoughtworks Technology Podcast by Thoughtworks

    Thoughtworks Technology Podcast

    43 Listeners

    Python Bytes by Michael Kennedy and Brian Okken

    Python Bytes

    215 Listeners

    The freeCodeCamp Podcast by freeCodeCamp.org

    The freeCodeCamp Podcast

    487 Listeners

    CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

    CoRecursive: Coding Stories

    189 Listeners

    Practical AI by Practical AI LLC

    Practical AI

    205 Listeners

    The Stack Overflow Podcast by The Stack Overflow Podcast

    The Stack Overflow Podcast

    63 Listeners

    The Real Python Podcast by Real Python

    The Real Python Podcast

    141 Listeners

    PodRocket by LogRocket

    PodRocket

    60 Listeners

    Oxide and Friends by Oxide Computer Company

    Oxide and Friends

    66 Listeners