packages/devtools-reps/src/reps/grip.js
function getPropValue(property) {
  let value = property;
  if (typeof property === "object") {
    const keys = Object.keys(property);
    if (keys.includes("value")) {
      value = property.value;
    } else if (keys.includes("getterValue")) {
      value = property.getterValue;
    }
  }
  return value;
}
function getPropValue(property) {
  let value = property;
  if (typeof property === "object") {
    const keys = Object.keys(property);
    if (keys.includes("value")) {
      value = property.value;
    } else if (keys.includes("getterValue")) {
      value = property.getterValue;
    }
  }
  return value;
}
function getPropValue ( property ) { let value = property ; if ( typeof property === "object" ) { const keys = Object . keys ( property ) ; if ( keys . includes ( "value" ) ) { value = property . value ; } else if ( keys . includes ( "getterValue" ) ) { value = property . getterValue ; } } return value ; }
Get the actual value of a property.

@param {Object} property
@return {Object} Value of the property.
Get the actual value of a property .