shift js mdn
let array = ["A", "B", "C"];
//Removes the first element of the array
array.shift();
//===========================
console.log(array);
//output =>
//["B", "C"]const array1 = [1, 2, 3];
const firstElement = array1.shhift();
console.log(array1);
// output: Array [2, 3];
https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/shift
Also in JavaScript:
- how to count click events javascript
- how to find out which version of React
- data for bar plot json
- Javascript remove last character
- scroll through page with javascript
- heroku router Cannot GET
- what is data type in javascript
- javascript get current url
- owl carousel json not working
- 00:00:00 / 00:00:00 js
- for of js
- tick.json code
- emit resize event in angular
- interceptor error handling angular 9
- discord js stats command
- how to add oAuth google signin in react native app
- how to get a channelid discord.js
- js toggle boolean
- how accurate is pi javascript
- navigation.openDrawer is not a function react native
- JavaScript after
- firestore batch add array
- import path nodejs
- javascript alert box