tui-code-snippet
Version:
TOAST UI Utility: CodeSnippet
23 lines (18 loc) • 622 B
JavaScript
/**
* @fileoverview Check whether the given variable is not empty(not null, not undefined, or not empty array, not empty object) or not.
* @author NHN FE Development Lab <dl_javascript@nhn.com>
*/
;
var isEmpty = require('./isEmpty');
/**
* Check whether the given variable is not empty
* (not null, not undefined, or not empty array, not empty object) or not.
* If the given variables is not empty, return true.
* @param {*} obj - Target for checking
* @returns {boolean} Is not empty?
* @memberof module:type
*/
function isNotEmpty(obj) {
return !isEmpty(obj);
}
module.exports = isNotEmpty;