Last active
June 18, 2019 13:03
-
-
Save hacker-DOM/4cfde53248ad1cfc4397c920007e8d93 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 reshape2 = R.curry((shape, object) => | |
R.map( | |
fn => R.is(Array, fn) ? R.pipe(...fn)(object) : fn(object), | |
shape | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment