I've got a filter method that check if result
doesn't contain value from this.state.filter
it should be delete.
My problem is method doesn't remove wrong result
. It makes null
filter(){
const {fetchData} = this.state;
return fetchData.map((result, index) => (
(result[3] == this.state.filter) ?
result : null //there is my problem
))
}
screens from console.log