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

preview_player
Показать описание
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.

Timestamps:
0:00 Contribute to the Igbo API
0:31 Quick Look: delete operator
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:

== Let's Connect ==

== 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
Рекомендации по теме
Комментарии
Автор

Your videos are great. Love the production quality, reminds me of what the cherno did for c++.
Hope you keep up the work! stay safe :)

juliuslirr
Автор

Cloning with filtering method is better for me because I tend to pure functions and immutability. Delete operator is only useful if you really, really (i mean REALLY) need exactly that object. The "immutable way" looks complex and unnecessary but one can write bulletproof large scale applications which will have significantly fewer bugs.

vitiok
visit shbcf.ru