DiscofyAPI/node_modules/is-obj/index.js

7 lines
144 B
JavaScript
Raw Normal View History

2021-03-25 17:23:36 +01:00
'use strict';
module.exports = value => {
const type = typeof value;
return value !== null && (type === 'object' || type === 'function');
};