Answers for "how to remove element from array in javascript from another arry"

0

js remove several elements from array

var ar = [1, 2, 3, 4, 5, 6];ar.length = 4; // set length to remove elementsconsole.log( ar ); // [1, 2, 3, 4]
Posted by: Guest on July-10-2020

Code answers related to "how to remove element from array in javascript from another arry"

Code answers related to "Javascript"

Browse Popular Code Answers by Language