isStatic:检测数据是不是除了symbol外的原始数据

function isStatic(value) {    
  return(

    typeof value === 'string' ||

    typeof value === 'number' ||

    typeof value === 'boolean' ||

    typeof value === 'undefined' ||

    value === null

  )
}
posted @ 2020-01-19 14:50  入坑的H  阅读(178)  评论(0编辑  收藏  举报