Skip to content

Added a test case to Where do I belong with return value 0#4760

Merged
arialaurel merged 1 commit intofreeCodeCamp:stagingfrom
Blauelf:patch-1
Nov 28, 2015
Merged

Added a test case to Where do I belong with return value 0#4760
arialaurel merged 1 commit intofreeCodeCamp:stagingfrom
Blauelf:patch-1

Conversation

@Blauelf
Copy link
Copy Markdown
Contributor

@Blauelf Blauelf commented Nov 28, 2015

On the chat today I have seen several solutions that cannot return 0 (usually return arr.length instead), and they still pass, as there is no such test case. Here is one, where([3, 10, 5], 3) === 0.

On the chat today I have seen several solutions that cannot return 0 (usually return arr.length instead), and they still pass, as there is no such test case. Here is one, `where([3, 10, 5], 3) === 0`.
@arialaurel
Copy link
Copy Markdown
Member

Awesome, thanks for the PR! 😄

In the future please name your branch according to the Contribution Guide

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