Skip to content

Conversation

@IcarusTheFly
Copy link
Contributor

No description provided.

@IcarusTheFly
Copy link
Contributor Author

@appgurueu @raklaptudirm - Is everything okay with this PR?

Copy link
Contributor

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Though I think in JS it'd be cleaner to return something like undefined rather than -1 for an invalid index; the -1 convention stems from statically typed languages, but it seems JS cargo cults it (see e.g. String.prototype.indexOf) so I'm not opposed to it.)

@raklaptudirm raklaptudirm merged commit c7a13e7 into TheAlgorithms:master Oct 20, 2023
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.

3 participants