iansinnott / react-string-replace

A simple way to safely do string replacement with React components
MIT License
652 stars 56 forks source link

Filter all undefined values in array #75

Closed Kosurij closed 1 year ago

Kosurij commented 2 years ago

Resolve this problem - https://github.com/iansinnott/react-string-replace/issues/74

Filter all undefined values. So, we dont get error like: "Cannot read property "length" of undefined"