7 lines
153 B
JavaScript
7 lines
153 B
JavaScript
exports = function(val) {
|
|
var type = typeof val;
|
|
return val == null || (type !== 'function' && type !== 'object');
|
|
};
|
|
|
|
module.exports = exports;
|