const obj = {
a: 1,
b: 2,
c: 3
};
const isDeleted = delete obj.b;
What is the time complexity of delete functionality here. Is it O(1)? How does it work internally?
const obj = {
a: 1,
b: 2,
c: 3
};
const isDeleted = delete obj.b;
What is the time complexity of delete functionality here. Is it O(1)? How does it work internally?