Skip to content

all test passed -debbuged#2

Open
Moe0880 wants to merge 1 commit into
masterfrom
answer
Open

all test passed -debbuged#2
Moe0880 wants to merge 1 commit into
masterfrom
answer

Conversation

@Moe0880

@Moe0880 Moe0880 commented Jun 16, 2020

Copy link
Copy Markdown
Owner

No description provided.

@Moe0880 Moe0880 requested a review from jlcarmic June 16, 2020 16:20
Comment thread index.js
Comment on lines +13 to +14
for (let i = 0; i < haystack.length; i++) {
if (haystack.slice(i, i + needle.length) === needle) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also could have used .split() to turn the string into an array and then the .shift() would have worked as expected

@Moe0880 Moe0880 requested a review from sashgems July 2, 2020 05:22
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