meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

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

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, Technology, News

4.9 • 1.2K Ratings

🗓️ 25 April 2018

⏱️ 55 minutes

🧾️ Download transcript

Summary

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

Transcript

Click on a timestamp to play from that location

0:00.0

You're listening to Syntax, the podcast with the tastiest web development treats out there.

0:06.1

Strap yourself in and get ready.

0:08.1

Here is Scott Tolinsky and West Boss.

0:10.5

Welcome to Syntax, The podcast with the tastiest web development treats around.

0:18.2

With me as always is Wes Boss.

0:21.2

Say what's up.

0:22.2

Hey everybody.

0:23.7

Hey, in this episode, we're going to be talking all about array methods

0:28.4

and object methods.

0:30.0

We're going to be doing some of the ones that we feel like

0:32.3

are very, very usable things you should be using, you know, somewhat frequently stuff that's going to improve your life, stuff that's going to make your code more readable, easier, all that good stuff that comes along with these methods.

0:44.6

We're going to be going just a little bit about what they do, maybe why you might want to use them,

0:48.7

what they return, what the benefits are, all that good stuff. And this episode is sponsored by Fresh Books,

0:55.0

which is amazing Cloud Accounting software

0:58.0

as well as Netify,

1:00.0

which is honestly one of,

1:02.0

you know, possibly one of my favorite services of all time here at this point.

1:05.8

I tweeted about it the other day and someone was like yeah but they're your sponsor.

1:10.0

I was like yeah but I you know found Netlify first and then reached out to them and was like I love your

1:17.4

service I absolutely love this thing so any words or comments you hear from me talking about that?

1:22.6

It's 100% my genuine reaction here.

1:26.4

I would say probably about half of our sponsors

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright Š Tapesearch 2026.