Note: Array.prototype.at() is available now
t-wy opened this issue · 3 comments
[]["at"] ([][(![]+[])[+!![]]+(!![]+[])[+[]]]
) may replace []["filter"] or []["fill"] ([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]]
) to get a Function and it should work with latest browser versions except Safari as of now.
(This note is for golfing but not for compatibility though)
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at#examples
@t-wy looks good - not yet works on safar
Thanks for the reminder! We already had a quick look at at
here:
https://twitter.com/aemkei/status/1415033724748582923
As we can see on the below link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at#browser_compatibility
the "at" method now is compatible with Safari.