Filter On Object in javascript


let {tabsData} = this.state;
        for (let element in tabsData) {
            if(tabsData[element].key == cat_name) {
                this.setState({
                    defCatSelected : cat_name,
                    filtersData : tabsData[element].filter
                })
            }
        };

No comments:

Post a Comment