Files
wangxiaowei 5d7b75a14e first commit
2025-12-09 13:35:21 +08:00

6 lines
151 B
JavaScript

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