I'm having troubles with removing first element of a array If i try to slice(1,1) or shift I cant get a list.
For example,
my array: [1499783769720,"54:52:00:62:46:66","54:52:00:b0:fa:57","54:52:00:8f:d9:7c","54:52:00:e7:67:10","54:52:00:26:56:56","54:52:00:33:3a:4d","54:52:00:7b:f4:ec","54:52:00:1d:48:1e","54:52:00:55:14:ed","54:52:00:78:b8:51"]
And i want to remove the timesamp "1499783769720" and just have ["54:52:00:62:46:66","54:52:00:b0:fa:57","54:52:00:8f:d9:7c","54:52:00:e7:67:10","54:52:00:26:56:56","54:52:00:33:3a:4d","54:52:00:7b:f4:ec","54:52:00:1d:48:1e","54:52:00:55:14:ed","54:52:00:78:b8:51"]
If i Try to slice I only obtain a single value "54:52:00:78:b8:51" and with sift I get 1499783769720.
How I can do this?
var randomMac = require('random-mac');
var now = Date.now();
var lista=[];
lista.push(now);
for(var i=0;i<10;i++){
var random = randomMac();
lista[i+1] = random;
}
slicereturns the element removed. An important aspect of slice is that it does not change the array which invokes it..slicereturns a shallow copy of a portion of an array into a new array object selected from begin to end (end not included). The original array will not be modified" - Source