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

Remove enumerate() polyfill, use destructuring #114

Merged
merged 2 commits into from
Jan 7, 2024
Merged

Conversation

PgBiel
Copy link
Owner

@PgBiel PgBiel commented Jan 7, 2024

We can use the built-in array.enumerate() function, since we support only Typst 0.2.0 and up.

Also use destructuring where possible.

Should squeeze a little tiny bit of perf.

@PgBiel PgBiel added the enhancement New feature or request label Jan 7, 2024
@PgBiel PgBiel added this to the v0.0.8 milestone Jan 7, 2024
@PgBiel PgBiel self-assigned this Jan 7, 2024
@PgBiel PgBiel changed the title Remove enumerate() polyfill Remove enumerate() polyfill, use destructuring Jan 7, 2024
It is available since Typst 0.2.0
@PgBiel PgBiel marked this pull request as ready for review January 7, 2024 19:06
@PgBiel PgBiel merged commit 16cd1ae into 0.1.0-dev Jan 7, 2024
3 checks passed
@PgBiel PgBiel deleted the remove-enumerate branch January 7, 2024 19:47
PgBiel added a commit that referenced this pull request Jan 7, 2024
Remove `enumerate()` polyfill, use destructuring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant