MCPcopy Index your code
hub / github.com/ampproject/amphtml / isDefined

Function isDefined

src/core/context/values.js:778–780  ·  view source on GitHub ↗

* Whether the value is defined. * * This function only exists to avoid function allocation when calling * `Array.every()` and `Array.some()`. * * @param {*} v * @return {boolean}

(v)

Source from the content-addressed store, hash-verified

776 * @return {boolean}
777 */
778function isDefined(v) {
779 return v !== undefined;
780}

Callers 2

subscribeMethod · 0.70
calc_Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected