MCPcopy Create free account
hub / github.com/microsoft/SandDance / ifUndefined

Function ifUndefined

docs/app/js/sanddance-app.js:92630–92632  ·  view source on GitHub ↗

* use the val2 when val1 is undefined * @param {*} val1 * @param {*} val2 * @returns {*}

(val1, val2)

Source from the content-addressed store, hash-verified

92628 * @param {*} val2
92629 * @returns {*}
92630 */ function ifUndefined(val1, val2) {
92631 return val1 === undefined ? val2 : val1;
92632 }
92633 /**
92634 * addEventListener with multiple events at once
92635 * @param {EventTarget} target

Callers 2

RecognizerFunction · 0.70
HammerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected