docker-lemp-node/www/nodejs/node_modules/is-obj/index.js
2022-03-27 18:02:38 +02:00

7 lines
144 B
JavaScript

'use strict';
module.exports = value => {
const type = typeof value;
return value !== null && (type === 'object' || type === 'function');
};