Created
June 17, 2017 12:18
-
-
Save JiLiZART/6602a9f371228b00efa045448260018c to your computer and use it in GitHub Desktop.
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
const If = (cond) => (truly) => (falsy) => [truly, falsy][!cond + 0]() | |
const result = If(false)(() => 'true')(() => 'false') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment