Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ticruz38
Copy link
Collaborator

#372

Replaced most of ramda utilities with either welshman/lib or standard JS functions.

takeWhile might deserve its own implementation in welshman/lib.

@ticruz38 ticruz38 requested a review from staab December 13, 2024 13:32
@ticruz38 ticruz38 force-pushed the delete/ramda branch 2 times, most recently from 09e44f3 to 9cc0a0e Compare December 13, 2024 13:47
Copy link
Collaborator

@staab staab left a 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 pluck in it, go ahead and use that instead of map/prop. Also spec and complement can be useful to replace whereEq, 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

const stickToBottom = async () => {
const lastMessage = pluck("created_at", groupedMessages).reduce(max, 0)
const lastMessage = max(groupedMessages.map(prop("created_at")) as number[])
Copy link
Collaborator

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.

@staab staab changed the base branch from master to dev December 18, 2024 16:33
Copy link
Collaborator

@staab staab left a 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

@staab
Copy link
Collaborator

staab commented Dec 20, 2024

Merged manually

@staab staab closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants