hexo/node_modules/es-to-primitive/helpers/isPrimitive.js

6 lines
156 B
JavaScript
Raw Normal View History

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