-
Notifications
You must be signed in to change notification settings - Fork 98
lodash-fp support #3
Conversation
|
||
var mapper = _lodashFp.map(_lodashFp.add(1)); | ||
var result = mapper([1, 2, 3]); | ||
_lodashFp.take(1, _lodashFp.reject(Boolean, result)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you get a second @jdalton mind sanity checking this output. It seems correct to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fp part? It looks good.
This is so crazy cool.
91c294b
to
dadf7ee
Compare
|
||
var _lodashFpConvert2 = _interopRequireDefault(_lodashFpConvert); | ||
|
||
var _lodashFp = (0, _lodashFpConvert2['default'])({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the 0
in (0, _lodashFpConvert2['default'])
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's something babel
adds when interacting with default imports, I'm not entirely sure why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe in case it's an eval
so it would be an indirect eval?
Cleanup fp variables
Awesome! |
No description provided.