Created
March 19, 2018 05:21
-
-
Save pentaphobe/0cbfdef5eebde55da38d54264922fc4d to your computer and use it in GitHub Desktop.
KnownWildCamel created by pentaphobe - https://repl.it/@pentaphobe/KnownWildCamel
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
import {flowRight, set} from 'lodash-fp' | |
const foo = (obj) => flowRight( | |
set('noodles', 'yes please'), | |
({a, b, c}) => { | |
console.log(a,b,c); | |
return obj | |
} | |
) | |
console.log(foo) | |
console.log(foo({ | |
a: 'hi', | |
b: 'there', | |
c: 'bubbles', | |
unknown_guy: 'I am sneaky boi' | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment