Undefined is not a function (evaluating 'this.state.location.normalize (' NFD ')')

0

I get the error Undefined is not a function (evaluating 'this.state.location.normalize (' NFD ')') while I'am doing a statement as below:

if(this.state.location.normalize('NFD').replace(/[\u0300-\u036f]/g, "").replace(/[^A-Z0-9]+/ig, "_").toLowerCase().indexOf(item.item.concelho.normalize('NFD').replace(/[\u0300-\u036f]/g, "").replace(/[^A-Z0-9]+/ig, "_").toLowerCase()) !== -1 ){
}

In a meanwhile I only get this error on Android, in iOS this error do not show. How can I fix this?

    
asked by anonymous 29.05.2018 / 15:42

0 answers