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

The original intention of developing this library #44

Open
ghost opened this issue Feb 5, 2021 · 2 comments
Open

The original intention of developing this library #44

ghost opened this issue Feb 5, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 5, 2021

Hello, I would like to ask how you came up with the idea of developing this library in the first place, and why the name is called invariant

@newbanker-damon
Copy link

I have the same question

@c0m1t
Copy link

c0m1t commented Oct 2, 2022

This might explain it a little more.

This explains how the message could be stripped in production mode.

And they probably named it invariant because the provided condition should not change and always be true. If the value is falsy, it throws an error.

invariant
adjective
never changing.

noun
a function, quantity, or property that remains unchanged when a specified transformation is applied.

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

2 participants