title: Is using the Js delete operator to remove a property from an object considered bad practice?
body: <p>When removing a property from an object, I've used the <code>delete</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete" rel="nofollow noreferrer">operator</a> in the past. But when I had my code reviewed by a person with a CS background, they wanted me to find another way of removing the property because it was an &quot;expensive&quot; task (not sure what that means). Since I'm self taught I wanted to ask if <strong>deleting in Js is something I should consider using as last resort?</strong> I've looked at other responses within SO like <a href="https://stackoverflow.com/questions/742623/deleting-objects-in-javascript">this</a> but couldn't find anything that makes reference to this.</p>