I have a js array of objects as follows:
var person = [{
firstName: "",
lastName: "Doe",
age: 46
}, {
firstName: "John",
lastName: "",
age: 35
}];
How do i find out if at least of the objects in the array, for eg firstName: or lastName: is empty or not? The result of the called function needs only to be true or false.
npm install joiif it is in node. for browsers there are also plenty of validators of all kinds