【发布时间】:2020-12-04 09:29:52
【问题描述】:
我知道我的 gfg[item[0] + 1][item[1]] 不存在,但我需要进一步运行我的代码:
arrayfirstword.forEach(item => {
if(typeof(gfg[item[0] + 1][item[1]]) !== undefined){
console.log(1);
}
有没有办法消除这个错误?
【问题讨论】:
标签: javascript arrays error-handling