Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00

4 lines
136 B
JavaScript

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