web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
469 B

  1. "use strict";
  2. module.exports = function () {
  3. var arr = [1, "foo"], iterator, result;
  4. if (typeof arr.entries !== "function") return false;
  5. iterator = arr.entries();
  6. if (!iterator) return false;
  7. if (typeof iterator.next !== "function") return false;
  8. result = iterator.next();
  9. if (!result || !result.value) return false;
  10. if (result.value[0] !== 0) return false;
  11. if (result.value[1] !== 1) return false;
  12. if (result.done !== false) return false;
  13. return true;
  14. };