MCPcopy Create free account
hub / github.com/controlsjs/controls.js / ngVal

Function ngVal

src/ng_basic/basic.js:402–405  ·  view source on GitHub ↗

* Function: ngVal * Substitutes undefined values with defaults. * * Syntax: * mixed *ngVal* (mixed val, mixed defval) * * Parameters: * val - value to be checked * defval - default value if val is undefined * * Returns: * Function returns defval if type of

(v, defv)

Source from the content-addressed store, hash-verified

400 * Function returns defval if type of val is undefined.
401 */
402function ngVal(v, defv)
403{
404 return (typeof v === 'undefined' ? defv : v);
405}
406
407/**
408 * Function: ngNullVal

Callers 15

wireframe.jsFile · 0.85
Create_wfrEditBoxBtnFunction · 0.85
Create_wfrEditNumFunction · 0.85
Create_wfrColorEditFunction · 0.85
Create_wfrDropDownFunction · 0.85
Create_wfrSearchBoxFunction · 0.85
Create_wfrPageListFunction · 0.85
Create_wfrWindowFunction · 0.85
Create_wfrEditDateFunction · 0.85
Create_wfrMemoFunction · 0.85
Create_wfrDlgEditBoxFunction · 0.85
Create_wfrViewModelFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected