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

Method valueArray_

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

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

(json, name)

Source from the content-addressed store, hash-verified

951 * @return {?Array}
952 */
953 valueArray_(json, name) {
954 const value = json[name];
955 if (value == null || value === '') {
956 return null;
957 }
958 return Array.isArray(value) ? value : [value];
959 }
960
961 /**
962 * @param {!Object} json

Callers 2

tryExtractConfig_Method · 0.95
singleValue_Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected