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

Revisit use of Arrary.from().map() #247

Open
Tracked by #250
nexushoratio opened this issue Feb 11, 2024 · 0 comments
Open
Tracked by #250

Revisit use of Arrary.from().map() #247

nexushoratio opened this issue Feb 11, 2024 · 0 comments
Labels
cleanup This doesn't seem right, refactor, etc library For libraries linkedin-tool For the LinkedIn Tool userscript

Comments

@nexushoratio
Copy link
Owner

It turns out that Array.from() takes a mapping function, so we should use that and remove the unnecessary intermediate array.

Alas, we cannot do similar for filter().

@nexushoratio nexushoratio added cleanup This doesn't seem right, refactor, etc linkedin-tool For the LinkedIn Tool userscript labels Feb 11, 2024
@nexushoratio nexushoratio self-assigned this Feb 11, 2024
@nexushoratio nexushoratio added the library For libraries label Feb 11, 2024
@nexushoratio nexushoratio removed their assignment Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup This doesn't seem right, refactor, etc library For libraries linkedin-tool For the LinkedIn Tool userscript
Projects
None yet
Development

No branches or pull requests

1 participant