function isStatic(value) {
return(
typeof value === ‘string‘ ||
typeof value === ‘number‘ ||
typeof value === ‘boolean‘ ||
typeof value === ‘undefined‘ ||
value === null
)}
isStatic:检测数据是不是除了symbol外的原始数据
原文:https://www.cnblogs.com/EternalZH/p/12213668.html