dsb-defined
v1.0.0
Published
returns false if {value} is {undefined} or {root}
Downloads
1
Readme
@method defined
- checks if a variable is undefined
- returns false if {variable} undefined or {this} === {window||global}
- @param variable {any} the variable to check is defined
- @returns is_defined {boolean} returns true if defined AND not root