Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    if you're just evaluating if something is truthy or falsey, this is a much more concise method:

    const validateProperty = (objectForValidate, specificProperty) => !!objectForValidate[specificProperty]