Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note: Array.prototype.at() is available now #119

Open
t-wy opened this issue Nov 16, 2021 · 3 comments
Open

Note: Array.prototype.at() is available now #119

t-wy opened this issue Nov 16, 2021 · 3 comments

Comments

@t-wy
Copy link

t-wy commented Nov 16, 2021

[]["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

@kamil-kielczewski
Copy link
Contributor

@t-wy looks good - not yet works on safar

@aemkei
Copy link
Owner

aemkei commented Nov 16, 2021

Thanks for the reminder! We already had a quick look at at here:
https://twitter.com/aemkei/status/1415033724748582923

@maeema
Copy link

maeema commented Jul 19, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants