phadej / typify

Runtime type checking for JavaScript
BSD 3-Clause "New" or "Revised" License
76 stars 7 forks source link

literal types for booleans, numbers and strings #10

Closed phadej closed 10 years ago

phadej commented 11 years ago
typify.check("123", 123); // true
typify.check("'foo'", "foo"); // true
typify.check("true", true); // true

or actually the booleans you can have already.