Last active
February 21, 2018 10:32
-
-
Save ealush/fe20141d815271f7feb8cdbc0e05a3e0 to your computer and use it in GitHub Desktop.
Test the `it's christmas approach`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enforce() | |
// {isArray: ƒ, largerThan: ƒ, smallerThan: ƒ, isEmpty: ƒ} | |
enforce(55).smallerThan(100); | |
// {isArray: ƒ, largerThan: ƒ, smallerThan: ƒ, isEmpty: ƒ} | |
enforce(55).smallerThan(100).largerThan(56); | |
// Uncaught Error: validation failed for largerThan | |
enforce('passable').isArray(); | |
// Uncaught Error: validation failed for isArray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment