string-similarity
string-similarity copied to clipboard
first.replace is not a function
All in the title.
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
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().