JSFiddle - React, Tailwind, and code Playground

by luka kupunia

JavaScript

const obj = {
	mail : {
    	correct: true
    },
    password: {
    	correct: false
    },
    x: {
    	age: 24
    },
    number : {
    	correct: true
    }
}

const check = Object.keys(obj).find(el => obj[el].correct == false)
console.log(check)