Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dashnowords/imfe
/ isArray
Function
isArray
chapter05/example5-1.js:27–29 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
25
}
26
//判断传入的是否是一个数组
27
function
isArray(data) {
28
return
Object.prototype.toString.call(data).slice(8, -1) ===
'Array'
;
29
}
30
31
console.log(getAllFood(originData));
Callers
1
getAllFood
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected