About 26,100,000 results
Open links in new tab
  1. delete - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The delete operator removes a property from an object. If the property's value is an object and there are no more references to the object, the object held by that property is eventually released automatically.

  2. Javascript delete a function - Stack Overflow

    May 11, 2013 · delete only works for properties of objects. If test() was inside an object, you could delete it, but if it's a stand alone function, you're stuck with it, unless you nullify it or define it as something else. test: function() { console.log("I'm a test");

  3. JavaScript delete Operator - GeeksforGeeks

    Jan 6, 2025 · The delete operator in JavaScript removes properties from objects, including inherited ones, and creates holes in arrays without changing their length. If a deleted property holds an object with no other references, that object is automatically released by JavaScript’s garbage collector over time.

  4. Is it safe to declare a delete method in JavaScript

    Dec 16, 2013 · So the question is simply, if it's safe (wise) to declare method called "delete" in JavaScript. Example: var request = { delete : function (url) { // Some code... } } request.delete('http://page.dev/users/1');

  5. pointers - Deleting Objects in JavaScript - Stack Overflow

    The delete operator deletes an object, an object's property, or an element from an array. The operator can also delete variables which are not declared with the var statement.

  6. The `delete` Operator in JavaScript - A Drip of JavaScript

    The delete operator is one of the less frequently used aspects of the JavaScript language. But there are times when you need delete and nothing else will do. In this drip, we'll dive into how to use it and how it works. The purpose of delete, as you might imagine, is to delete things. More specifically, it will delete object properties. For ...

  7. Demystifying JavaScript‘s Misunderstood Delete Operator

    Dec 27, 2023 · We‘ve covered a ton of ground around JavaScript‘s delete operator – how it works under the hood, when to use it, performance implications, alternatives, and best practices.

  8. Remove Elements From a JavaScript Array - GeeksforGeeks

    Apr 16, 2025 · Here are the various methods to remove elements from a JavaScript Array. 1. Using pop () method. The pop () method removes and returns the last element of an array. This function decreases the length of the array by 1 every time the element is …

  9. JavaScript Delete Operator: 5 Things to Know | Built In

    Feb 8, 2023 · In JavaScript, the delete operator is the only way to remove properties from an object. When you use delete, it’ll return true when it removes a property and false otherwise.

  10. JavaScript delete Operator - Pi My Life Up

    Jun 29, 2022 · In this tutorial, we explained how to use the delete operator within JavaScript. This operator is purely aimed at deleting the properties of an object and shouldn’t be used on variables, functions, or core JavaScript components.

  11. Some results have been removed
Refresh