newPromise / js-

0 stars 0 forks source link

判断对象和null 的方法 #35

Closed newPromise closed 6 years ago

newPromise commented 6 years ago
function isPureObj (obj) {
  return typeof obj === 'object' && obj
}