JavaScript's Delete Operator - How to Delete Object Properties with One Command

Опубликовано: 13 Октябрь 2024
на канале: Ijemma Onwuzulike
609
29

JavaScript's delete operator makes it possible to delete object properties. Despite its simplicity, it's often over looked when it comes to mutating JavaScript objects. In this video, we're going to walk through how to use this operator while identifying some of its limitations.

Igbo API GitHub: https://github.com/ijemmao/igbo_api
Volunteer Form: https://nkowaokwu.com/volunteer

🎬 Subscribe to the channel! -    / @ijemmaonwuzulike  

Timestamps:
0:00 Contribute to the Igbo API
0:31 Quick Look: delete operator
1:01 Example: Deleting with Array.reduce
2:18 Example: Deleting with assigning undefined
3:19 delete Operator Limitations
4:33 Example: Deleting Array Elements
5:20 delete Operator Alternative: Lodash omit function
6:53 Final Call! Contribute to the Igbo API

Resources:
https://developer.mozilla.org/en-US/d...

== Let's Connect ==
🐦 Twitter -   / ijemmaohno  

== Who I Am ==
I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.

Icons from Freepik

#javascript #webdevelopment #softwareengineer