Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

first.replace is not a function #82

Open
ghost opened this issue Jan 9, 2021 · 2 comments
Open

first.replace is not a function #82

ghost opened this issue Jan 9, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2021

All in the title.

@RiccardoManzan
Copy link

RiccardoManzan commented Feb 11, 2021

Similar here, i got "second.replace is not a function" in compareTwoStrings()

Any thoughts?

Edit: My fault, i was passing a null value sometimes, "fixed" adding || "" after the variables

@ianengelbrecht
Copy link

Suggested to update the docs to say that string 1 and string 2 passed to compareTwoStrings() must not be null, or check the vals passed in and throw an error if either null rather than relying on the error throw by null.replace().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants