invariant icon indicating copy to clipboard operation
invariant copied to clipboard

The original intention of developing this library

Open ghost opened this issue 4 years ago • 2 comments

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

ghost avatar Feb 05 '21 02:02 ghost

I have the same question

newbanker-damon avatar Jan 05 '22 11:01 newbanker-damon

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.

c0m1t avatar Oct 02 '22 16:10 c0m1t