Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Copy the first two array elements to the last two array elements

var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.copyWithin(2, 0);
 
PREVIOUS NEXT
Tagged: #Copy #array #elements #array #elements
ADD COMMENT
Topic
Name
7+2 =