lb.base

Adapter Modules for Base JavaScript Library

Authors

Copyright

Eric Bréchemier © 2011-2013, Some Rights Reserved Legal-Box SAS © 2010-2011, All Rights Reserved

License

BSD License http://creativecommons.org/licenses/BSD/

Version

2013-09-10

Summary
lb.baseAdapter Modules for Base JavaScript Library
Functions
no(value): booleanCheck whether given value is null or undefined
or(a,b): anyGet a default value when given value is null or undefined

Functions

no(value): boolean

Check whether given value is null or undefined

Parameter

valueany, the value to check

Returns

boolean, false when the value is null or undefined, true otherwise

or(a,b): any

Get a default value when given value is null or undefined

Parameters

aany, the value to check
bany, the default value

Returns

any, the default value when the value is null or undefined, the value itself otherwise.

Close