use `Array.prototype.slice` instead `toArray` function.