function truthCheck(collection, pre) { return collection.every(function (user) { return user.hasOwnProperty(pre) && Boolean(user[pre]) }); } console.log(truthCheck([{"single": "double"}, {"single": NaN}], "single"));