gururajbm / custom-select-tdd

Found Yoda conditions JS-0104
Bug risk
Minor
a year agoa year old
Expected literal to be on the right side of !==
 40        const filterData
 41            = optionsData.filter((item) => {
 42                let str = item.label;
 43                return -1 !==str.indexOf(event.target.value); 44            });
 45        this.setState({ filterdOptionData: filterData });
 46    };