zertosh / invariant

invariant
MIT License
1.22k stars 70 forks source link

Zero, the number should not throw #23

Open thanpolas opened 7 years ago

thanpolas commented 7 years ago

A value of 0 will throw an error, it should not

dashed commented 7 years ago

0 is a falsy value: https://developer.mozilla.org/en-US/docs/Glossary/Falsy