Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove row from array javascript

// main array
let array = ['item 1', 'item 2', 'item 3'];

// adding new item at 2nd place / 1st index
array.splice(1, 0, 'new item 1');

// removing single item and return it from 3rd place / 2nd index
array.splice(2, 1);
Source by tutorialmeta.com #
 
PREVIOUS NEXT
Tagged: #remove #row #array #javascript
ADD COMMENT
Topic
Name
6+2 =