Closed dapplion closed 5 years ago
Change
name.split("-")
with
stringSplit(name, "-") // utils/strings export const stringSplit = (s, separator) => { if (!s || typeof s !== "string") return [""]; if (!separator) return [""]; return s.split(separator); };
which checks the variable existance and its type before calling a prototype method
Change
with
which checks the variable existance and its type before calling a prototype method