var isArray = Array.isArray || function(o) {
    return typeof o === "object" &&
    Object.prototype.toString.call(o) === "[object Array]";
};

isArray([]);//true

相关文章:

  • 2021-11-17
  • 2021-12-01
  • 2021-06-22
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-12-11
  • 2021-06-23
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案