Backend/node_modules/is-obj/index.js
2021-12-31 15:03:23 +05:30

7 lines
144 B
JavaScript

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