ES6 Array.prototype.values ​​should not exist by now?

If ES6 Array.protoype.values does not exist now, as it already works:

 Array.prototype.values = function(){ return this[Symbol.iterator](); } let arr = [1,2,3,4,5]; let iterator = arr.values(); for(let num of iterator) console.log(num) // 1, 2, 3, 4, 5 
0
source share
1 answer

This breaks too many sites, so it has been deleted. These are two important issues to consider:

There is no ETA as far as I put together.

+1
source

Source: https://habr.com/ru/post/976546/


All Articles