Answers for "find a value in array and remove that value from array"

0

find a value in array and remove that value from array

var index = array.indexOf(item);
if (index !== -1) {
  array.splice(index, 1);
}
Posted by: Guest on October-21-2021

Code answers related to "find a value in array and remove that value from array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language