hexo/node_modules/is-obj/index.js

7 lines
150 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
'use strict';
module.exports = value => {
const type = typeof value;
return value !== null && (type === 'object' || type === 'function');
};