-
Notifications
You must be signed in to change notification settings - Fork 84
replace ramda with welshman/lib #508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
09e44f3 to
9cc0a0e
Compare
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.
- I've released a new version of welshman with
pluckin it, go ahead and use that instead of map/prop. Alsospecandcomplementcan be useful to replacewhereEq, but that's optional - Prop is now parameterizable, so you can avoid type assertions
- I've added a linting rule for triple equals, be sure to rebase and lint
src/app/shared/Channel.svelte
Outdated
| const stickToBottom = async () => { | ||
| const lastMessage = pluck("created_at", groupedMessages).reduce(max, 0) | ||
| const lastMessage = max(groupedMessages.map(prop("created_at")) as number[]) |
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.
Prefer lambdas over type assertions. Prop is probably a bad idea.
9cc0a0e to
4b16e25
Compare
- type definitions
4b16e25 to
043c2dc
Compare
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.
One final thing and it's good to go
|
Merged manually |
#372
Replaced most of ramda utilities with either welshman/lib or standard JS functions.
takeWhile might deserve its own implementation in welshman/lib.