Delete Item From List Javascript

Source URL: N/A

Language: javascript

Created on: 2020-12-10 05:21:26

const array = [1, 2, 3];
const index = array.indexOf(2);
if (index > -1) {
  array.splice(index, 1);
}
Delete Item From List Javascript
content_copy