You need to sign in or sign up before continuing.×
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]