how can I rewrite the following javascript code to ES6 version:
if(allUser[currentUser]['email']==email){ if(allUser[currentUser]['password']==password){ isUserFound = true passwordCorrect = true break } else { isUserFound = true passwordCorrect = false break } } else { isUserFound = false }