1、isPlainObject:判断数据是不是Object类型的数据
 */
function isPlainObject(obj) {
    return Object.prototype.toString.call(obj) === '[object Object]'
}

/**
2、isArray:判断数据是不是数组类型的数据
 */
function isArray(arr) {
    return Object.prototype.toString.call(arr) === '[object Array]'
}
/*

 

相关文章:

  • 2022-02-27
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-08-04
猜你喜欢
  • 2021-10-21
  • 2022-02-11
  • 2021-07-14
  • 2021-10-23
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案