🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@johnmasonyxe
Copy link

@johnmasonyxe johnmasonyxe commented Apr 25, 2025

problem

  • _.sumBy called with a single boolean element returns boolean a instead of number

solution

  • coerce boolean to number for the base case

notes & links

@johnmasonyxe johnmasonyxe changed the title Fix sum by returning boolean fix sumBy returning boolean Apr 25, 2025
@johnmasonyxe johnmasonyxe changed the title fix sumBy returning boolean fix sumBy returning boolean Apr 25, 2025
@johnmasonyxe johnmasonyxe changed the title fix sumBy returning boolean fix: sumBy returns boolean instead of number when summing booleans #5985 Apr 25, 2025
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.

1 participant