* 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)
| 400 | * Function returns defval if type of val is undefined. |
| 401 | */ |
| 402 | function ngVal(v, defv) |
| 403 | { |
| 404 | return (typeof v === 'undefined' ? defv : v); |
| 405 | } |
| 406 | |
| 407 | /** |
| 408 | * Function: ngNullVal |
no outgoing calls
no test coverage detected