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.
🌐
Reddit
reddit.com β€Ί r/learnprogramming β€Ί why is removing a specific element from an array so needlessly complicated in javascript?
Why is removing a specific element from an array so ...
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?

🌐
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 ...
🌐
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.
🌐
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.
🌐
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.
🌐
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.
Find elsewhere
🌐
Zipy
zipy.ai β€Ί blog β€Ί remove-specific-item-from-array
remove specific item from array
April 12, 2024 - In this example, we define a custom removeItemFromArray function that takes an array and an item as arguments. The function uses the filter() method to create a new array containing all elements except the specified item. We then call this function with the fruits array and the value 'banana' to create a new array fruitsWithoutBanana that excludes all occurrences of 'banana'.
🌐
freeCodeCamp
freecodecamp.org β€Ί news β€Ί how-to-remove-an-element-from-a-javascript-array-removing-a-specific-item-in-js
How to Remove an Element from a JavaScript Array – Removing a Specific Item in JS
August 31, 2022 - The two arrays are concatenated together with concat to form an array that is similar to the starting one, but without a particular element. If you want to remove an element with a certain value, you can use Array.prototype.filter().
🌐
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 ......
Call Β  +917738666252
Address Β  Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Love2Dev
love2dev.com β€Ί blog β€Ί javascript-remove-from-array
9 Ways To Remove πŸ—‘οΈ Elements From A JavaScript Array πŸ“‡[Examples]
... You will also learn some other ... Array elements can be removed from the end of an array by setting the length property to a value less than the current value....
🌐
TestMu AI Community
community.testmuai.com β€Ί ask a question
In TypeScript, how can you remove an item from an array using a property's key when you have that key? - TestMu AI Community
July 31, 2024 - Given an array in TypeScript where each item has a property used as a key, how can you remove an item from the array if you have that key? In TypeScript, how can you remove an item from an array based on a property key …
🌐
CoreUI
coreui.io β€Ί blog β€Ί how-to-remove-element-from-javascript-array
How to Remove Elements from a JavaScript Array Β· CoreUI
February 13, 2025 - For instance, if you must remove an element of the array with a specified value, consider filter. If you just want to remove the first element or remove the last element quickly, reach for shift or pop.
🌐
Ultimate Courses
ultimatecourses.com β€Ί blog β€Ί remove-specific-item-from-array-javascript
Removing Items from an Array in JavaScript - Ultimate Courses
March 12, 2020 - 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.
🌐
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.
🌐
React
react.dev β€Ί learn β€Ί updating-arrays-in-state
Updating Arrays in State – React
You can use filter() and map() to create new arrays with filtered or transformed items. You can use Immer to keep your code concise. 1. Update an item in the shopping cart 2. Remove an item from the shopping cart 3. Fix the mutations using non-mutative methods 4.
🌐
WebDevAssist
webdevassist.com β€Ί typescript β€Ί typescript-array-remove-last-element
How to remove the last element from an array in TypeScript
Initial array: [ 1, 2, 3, 4 ] Removed element: 4 Final array: [ 1, 2, 3 ] slice() method can be used to get one subarray from an array. The advantage of using slice is that it will not modify the original array. ... It returns a copy of one section of the array. start and end are optional values and these are used to give the start and end index for the slicing.
🌐
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.