so i just noticed that when i use Array.splice() it's like i'm using Array.slice(),
So when i type[0, 1, 2, 3].splice(0, 2)
it returns [0, 1]
? (yes i am shure that i'm typing splice
not slice
)
So basicly:
[0, 1, 2, 3, 4, 5].splice(0, 2);
returns [0, 1]?
[0, 1, 2, 3, 4, 5].splice(3, 1);
returns [3]?
[0, 1, 2, 3, 4, 5].slice(0, 2);
returns [0, 1]
[0, 1, 2, 3, 4, 5].slice(3, 1);
returns [3]
Why does this happen? It's supposed to remove the specified objects right?