JavaScript Tutorial: Removing a specific element from an array | JavaScript Basics, Learn JavaScript

Опубликовано: 30 Октябрь 2020
на канале: Codementor
22,900
541

Have you ever been stuck trying to remove a specific item from an array? In this video, we're going to talk about how to remove a specific element from an array using Javascript’s native array methods: Splice and Filter, and how to handle duplicates.

Demo code: https://codesandbox.io/s/002-remove-a...

0:27 - Method 1: Splice
1:15 - ES6 arrow function syntax to avoid mutating the original array
3:06 - Method 2: Filter
3:55 - Key takeaways

Connect with a Javascript mentor here: https://codemntr.io/3kFc7kh
You can find the transcript here: https://www.codementor.io/blog/javasc...

Find your next JavaScript project: https://www.codementor.io/projects/ja...

----
Codementor is a platform where you can connect with vetted mentors for 1:1 live programming mentorship, debugging, code review, and more! As long as it's programming related, our mentors can help you.

💻 Find a mentor: http://codemntr.io/learn-more

👋 Come find us on social
Twitter:   / codementorio  
Instagram:   / codementor  

#Developer #Programming #JavaScript


На этой странице сайта вы можете посмотреть видео онлайн JavaScript Tutorial: Removing a specific element from an array | JavaScript Basics, Learn JavaScript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Codementor 30 Октябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 22,900 раз и оно понравилось 541 зрителям. Приятного просмотра!