setup-php/node_modules/es-to-primitive/helpers/isPrimitive.js
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30

4 lines
136 B
JavaScript

module.exports = function isPrimitive(value) {
return value === null || (typeof value !== 'function' && typeof value !== 'object');
};