M
M
mamaanarhiya2018-03-12 17:42:10
JavaScript
mamaanarhiya, 2018-03-12 17:42:10

How to remove a specific element in an array?

There is an array with data:

[{name: 'test', id: 1},{name: 'tttttt', id: 2},{name: 'azaza', id: 3},{name: 'test123', id: 4}]

It is necessary to remove the object from the array, where name === 'azaza';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2018-03-12
@mamaanarhiya

.filter / .splice

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question