Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
use the map or filter method with terinary operator on the index of the array element
20th May 2020, 11:00 PM
Logomonic Learning
Logomonic Learning - avatar
0
You can use splice to remove element from the original array. You can also use slice to return a new array with elements removed
20th May 2020, 6:08 PM
Sajid
Sajid - avatar
0
Abhay doing this will have a undefined value in the array
20th May 2020, 6:24 PM
Sajid
Sajid - avatar