React component names and values filter
I want to filter React components by name and values. this is the array i want to filter let filteredArray: any[] = [] const filteredItems: any[] = eventList.filter( (event) => event.props.children.props.printEvent.labels === null && event.props.children.props.printEvent.value === true && event.props.children.props.printEvent.notes === null && (event.props.children.props.printEvent && event.props.children.props.printEvent.name === ‘control_fault’) || (event.props.children.props.printEvent.name === ‘running’ && event.props.children.props.printEvent.value === false)… Read More React component names and values filter