I was trying to slice an object using Array.prototype, but it returns an empty array, is there any method to slice objects besides passing arguments or is just my code that
I think it can helps you:
var my_object = { 0: 'zero', 1: 'one', 2: 'two', 3: 'three', 4: 'four' }; var sliced = Object.keys(my_object).map(function(key) { return my_object[key] }).slice(4); console.log(sliced);