Skip to content

refactor(toHash): reduce size by using spread operator and Array.reduce#614

Open
PrettyCoffee wants to merge 1 commit intocristianbote:masterfrom
PrettyCoffee:refactor/shave-size
Open

refactor(toHash): reduce size by using spread operator and Array.reduce#614
PrettyCoffee wants to merge 1 commit intocristianbote:masterfrom
PrettyCoffee:refactor/shave-size

Conversation

@PrettyCoffee
Copy link

@PrettyCoffee PrettyCoffee commented Oct 10, 2025

Spreading the string into an array and using Array.reduce instead of a while loop seems to shave off 9 Bytes of the toHash function. :)

@vercel
Copy link

vercel bot commented Oct 10, 2025

@PrettyCoffee is attempting to deploy a commit to the Cristian Bote's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

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

Successfully merging this pull request may close these issues.

1 participant