UNPKG
package16
Version:
latest (1.0.0)
1.0.0
遍历数组和对象方法
package16
/
student.js
12 lines
(11 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module
.
exports
= {
show
:
function
(
arr
) {
if
(arr
instanceof
Array
) { arr.
forEach
(
function
(
item
) {
console
.
log
(item) }) }
else
{
return
arr } } }