MCPcopy Create free account
hub / github.com/ampproject/amphtml / singleValue_

Method singleValue_

third_party/subscriptions-project/config.js:966–970  ·  view source on GitHub ↗

* @param {!Object} json * @param {string} name * @return {*}

(json, name)

Source from the content-addressed store, hash-verified

964 * @return {*}
965 */
966 singleValue_(json, name) {
967 const valueArray = this.valueArray_(json, name);
968 const value = valueArray && valueArray[0];
969 return value == null || value === '' ? null : value;
970 }
971}
972
973class MicrodataParser {

Callers 2

tryExtractConfig_Method · 0.95
discoverProductId_Method · 0.95

Calls 1

valueArray_Method · 0.95

Tested by

no test coverage detected