When I was looking someone's code, and I saw the following code:
var items = [].slice.call(
document.querySelectorAll(".item")
);
I really don't know what does the slice do here so I'm quite curious about this.
It seems not different between the code below:
var items = document.querySelectorAll(".item")