UNPKG

tui-code-snippet

Version:
20 lines (16 loc) 440 B
/** * @fileoverview Check whether the given variable is null or not. * @author NHN FE Development Lab <dl_javascript@nhn.com> */ 'use strict'; /** * Check whether the given variable is null or not. * If the given variable(arguments[0]) is null, returns true. * @param {*} obj - Target for checking * @returns {boolean} Is null? * @memberof module:type */ function isNull(obj) { return obj === null; } module.exports = isNull;