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

Fix rechecking unchanged variable in .toString() #149

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AngryAndConflict
Copy link

Also changed ifs to switch, this way it is more readable and compact

Also changed ifs to switch, this way it is more readable and compact
In case of using tinycolor on complex math platform, will have more optimized clamp,
Or in case using with libs like Ramda or Lodash, they have crazy caching and memoization mechanics, so there clamp version is more performant, and can be easily used in exchange.

Also have made it with variable initialization so it is currable out of the box, and params order for same reason.
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