Created
October 24, 2016 18:33
-
-
Save plukevdh/4af3f884933ef8411e398e1c9ea236d1 to your computer and use it in GitHub Desktop.
Ramda - Type Detection Functions
This file contains hidden or 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 isObject = R.compose(R.equals('Object'), R.type); | |
const isScalar = R.compose(R.not, R.either(isObject, R.isArrayLike), R.last, R.values); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment