ES6 Array.prototype.values shouldn't it exist by now?

后端 未结 1 1247
闹比i
闹比i 2020-12-22 11:36

Shouldn\'t ES6 Array.protoype.values exist already by now since this already works:

Array.prototype.values = function(){
  return this[Symbol.it         


        
相关标签:
1条回答
  • 2020-12-22 12:01

    It breaks too many sites, so it was removed. These are the two relevant issues to keep an eye on:

    • https://code.google.com/p/chromium/issues/detail?id=462936
    • https://bugzilla.mozilla.org/show_bug.cgi?id=875433

    There's no ETA as far as I've gathered.

    0 讨论(0)
提交回复
热议问题