Contact: aviboots(AT)netvision.net.il
39,987 questions
51,931 answers
573 users
let obj = { '0': 'python', '1': 'javascript', '2': 'c++', '3': 'c', '4': 'c#', length: 5 }; let arr = Array.prototype.slice.call(obj, 2); console.log(arr); /* run: ["c++", "c", "c#"] */