Skip to content

Instantly share code, notes, and snippets.

@barneycarroll
Last active December 5, 2017 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barneycarroll/1763ce04f554702af57996253d75aa73 to your computer and use it in GitHub Desktop.
Save barneycarroll/1763ce04f554702af57996253d75aa73 to your computer and use it in GitHub Desktop.
const [not, definitively] = [Symbol(), Symbol()]
export default const possibly = possibility => premise => alternatively =>
[premise, ...possibility, definitively].reduce((premise, postulate) =>
premise === not
?
alternatively
:
postulate === definitively
?
premise
:
postulate in premise
?
premise[postulate]
:
not
)
@barneycarroll
Copy link
Author

It's the Material Design Lite of code styles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment