Same way as you would in JavaScript.

delete myArray[key];

Note that this sets the element to undefined.

Better to use the Array.prototype.splice function:

const index = myArray.indexOf(key, 0);
if (index > -1) {
   myArray.splice(index, 1);
}
Answer from blorkfish on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › typescript › how-do-i-remove-an-array-item-in-typescript
How do I Remove an Array Item in TypeScript? - GeeksforGeeks
July 23, 2025 - Another approach to remove an item from an array in TypeScript is by using the reduce() method. This method processes the array elements and builds a new array by accumulating values that meet a specific condition.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › splice
Array.prototype.splice() - JavaScript | MDN
An integer indicating the number of elements in the array to remove from start. If deleteCount is omitted, or if its value is greater than or equal to the number of elements after the position specified by start, then all the elements from start to the end of the array will be deleted. However, if you wish to pass any itemN parameter, you should pass Infinity as deleteCount to delete all elements after start, because an explicit undefined gets converted to 0.
🌐
HowToDoInJava
howtodoinjava.com › home › typescript › typescript – how to remove items from array
TypeScript - How to Remove Items from Array
July 26, 2023 - An array in TypeScript, once initialized, cannot be resized. The items in an array can be modified but cannot be removed (or added) without creating a new array.
🌐
Sentry
sentry.io › sentry answers › javascript › how can i remove a specific item from an array?
How Can I Remove a Specific Item from an Array? | Sentry
If you want to use the value of the item you are removing, use the splice() method. The delete operator deletes the object property at the specified index, but does not update the length of the array, and the value at that index of the array ...
🌐
DEV Community
dev.to › smpnjn › deleting-an-item-in-an-array-at-a-specific-index-3mif
Deleting an Item in an Array at a Specific Index - DEV Community
September 18, 2022 - First, we get the index of the item we want to delete by value, using indexOf. Then, we use that number to delete the array item. Here's an example. We want to delete the item ravioli from our array below.
🌐
Reddit
reddit.com › r/learnprogramming › why is removing a specific element from an array so needlessly complicated in javascript?
r/learnprogramming on Reddit: Why is removing a specific element from an array so needlessly complicated in Javascript?
January 17, 2023 -

I'm just looking for something along the lines of:

array.remove("element")

Upon Googling for solutions so far I've found

Remove an element at any index with splice

Remove an element from an array with a for loop and push

Remove an element at any position of an array with slice and concat

There's more but I'm assuming you get the point. Why is this seemingly simple task so ridiculously complicated with Javascript?

Did nobody think to include a ".remove()" method when they were first developing Javascript? Is there a quirk of the language that makes it impossible? What is the reason for this?

🌐
EDUCBA
educba.com › home › software development › software development tutorials › typescript tutorial › typescript remove item from array
TypeScript remove item from array | Learn the Examples and Parameters
April 6, 2023 - This function also has no parameters ... function. In typescript, to remove or delete any item in the array, we can use the delete operator as JavaScript, but it will remove ......
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
Find elsewhere
🌐
Angular Wiki
angularjswiki.com › angular › how-to-remove-an-element-from-array-in-angular-or-typescript
How To Remove an element from Array in Angular/Typescript | Angular Wiki
To remove an element from an array in Angular or Typescript we can use javascript’s delete operator or Array splice function.
🌐
Bobby Hadz
bobbyhadz.com › blog › typescript-remove-element-from-array
Remove Element(s) from an Array in TypeScript | bobbyhadz
The delete operator removes the array element, however, it doesn't update the length of the array. Even after we delete an element, the length of the array continues to be 3. This is the case even if you delete the last element in an array.
🌐
CoreUI
coreui.io › answers › how-to-remove-a-specific-item-from-an-array-in-javascript
How to remove a specific item from an array in JavaScript · CoreUI
September 18, 2025 - Use splice() with indexOf() to efficiently remove a specific element from a JavaScript array by value or index.
🌐
Tiloid
tiloid.com › p › removing-an-array-item
Removing an Array Item - Tiloid
January 10, 2023 - In TypeScript, you can remove an item from an array using different methods, depending on your specific requirements and the version of TypeScript you...
🌐
Delft Stack
delftstack.com › home › howto › typescript › remove an array item in typescript
How to Remove an Array Item in TypeScript | Delft Stack
February 2, 2024 - let array = ["white", "yellow", "black", "green", "blue"].pop(); console.log("The removed color is : " + array ); ... The delete operator in TypeScript completely deletes the value of the property and the object’s property, but we can still ...
🌐
Chris Pietschmann
pietschsoft.com › post › 2023 › 09 › 21 › how-to-remove-specific-item-from-array-in-javascript
How to Remove a Specific Item from an Array in JavaScript | Chris Pietschmann
September 21, 2023 - If you’re using TypeScript, you can ensure type safety for these functions by adding a type parameter: function removeItem<T>(arr: Array<T>, value: T): Array<T> { const index = arr.indexOf(value); if (index > -1) { arr.splice(index, 1); } ...
🌐
TutorialsPoint
tutorialspoint.com › home › typescript › typescript array splice method
TypeScript Array Splice Method
December 18, 2016 - TypeScript - null vs. undefined ... howMany − An integer indicating the number of old array elements to remove. If howMany is 0, no elements are removed. element1, ..., elementN − The elements to add to the array. If you don't specify any elements, splice simply removes the elements from the array.
🌐
Technical Feeder
technicalfeeder.com › 2022 › 11 › typescript-remove-elements-from-an-object-array
TypeScript Remove elements from an object array | Technical Feeder
November 23, 2022 - This method call removes two elements. { prop1: 444, prop2: 'ddd' } still exists in the array because it was added in the initialization. However, the other two elements were added by push(obj) method.
🌐
SPGuides
spguides.com › typescript-remove-item-from-array
How to Remove Items from Arrays in TypeScript
June 30, 2025 - Check out Add to an Array in TypeScript Only If the Value Exists · If you want to remove elements based on a condition without modifying the original array, the filter() method is your best option in TypeScript.
🌐
Medium
zaferayan.medium.com › how-to-remove-a-specified-item-from-the-object-array-in-javascript-2f480beb2ef7
How to remove a specified item from the object array in JavaScript? | by Zafer Ayan | Medium
March 2, 2022 - There is a pop() function that exists but it only removes items from the end of an array. The old but gold splice method can remove items from the specified index. We can use it like fruits.splice(itemIndex, 1) to remove an item in that index.
🌐
GitHub
gist.github.com › scottopolis › 6e35cf0d53bae81e6161662e6374da04
Remove object from array of objects in Javascript · GitHub
Remove object from array of objects in Javascript. GitHub Gist: instantly share code, notes, and snippets.
🌐
Ultimate Courses
ultimatecourses.com › blog › remove-specific-item-from-array-javascript
Removing Items from an Array in JavaScript - Ultimate Courses
Removing items from arrays simply boils down to finding the index of the item, or at least traditionally. Nowadays - we have other options, such as finding items inside an array by their value.