阅读背景:

使用forEach在多个数组中搜索字符串

来源:互联网 

I'm trying to write a forEach function that searches an array for a string ("null") and console.log("I found a zero!") when it does. I have 15 arrays in results.data that I need searched. When I need to access a specific element in an array I target it with (for instance) results.data["0"][0] . For some reason my code never finds the string I'm looking for (and I can see it in console so I know it's there). Here's my codeI'm trying to write a forEach function that sea




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: