Skip to content

isIterable(x)

判断是否可迭代,实现了Symbol.iterator接口

示例

typescript
isIterable([]); // true