Skip to content

Instantly share code, notes, and snippets.

@pentaphobe
Created March 19, 2018 05:21
Show Gist options
  • Save pentaphobe/0cbfdef5eebde55da38d54264922fc4d to your computer and use it in GitHub Desktop.
Save pentaphobe/0cbfdef5eebde55da38d54264922fc4d to your computer and use it in GitHub Desktop.
KnownWildCamel created by pentaphobe - https://repl.it/@pentaphobe/KnownWildCamel
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