Проверьте множество ключей в объектах

const neededKeys = ['oldPassword', 'name', 'newPassword'];

const obj = {
    "name": "admin@test.org",
    "oldPassword": "1234",
    "newPassword": "12345"
}

console.log(neededKeys.every(key => Object.keys(obj).includes(key)));
Jolly Jellyfish