Ad
Code
Diff
  • function validateProperty(objectForValidate, specificProperty) {
      return objectForValidate && objectForValidate.hasOwnProperty(specificProperty);
    }
    • function validateProperty(objectForValidate, specificProperty) {
    • return Boolean(objectForValidate[specificProperty]);
    • return objectForValidate && objectForValidate.hasOwnProperty(specificProperty);
    • }