shift73k/assets_old/node_modules/is-obj/index.js

6 lines
144 B
JavaScript

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