Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

move first element to last javascript

function shiftElementToLastPlace(array){
  let arr = [...array]
  arr.push(arr.shift())
  return arr
}
 
PREVIOUS NEXT
Tagged: #move #element #javascript
ADD COMMENT
Topic
Name
1+3 =