Open benvmatheson opened 8 years ago
If undefined is passed in, this will return an empty string instead of an error. Not sure if this error is preferred to just returning an empty string though.
I'd argue null or undefined as slugified should exactly an empty string. I think throwing on this would generally cause more issues than help.
If undefined is passed in, this will return an empty string instead of an error. Not sure if this error is preferred to just returning an empty string though.