Skip to content

Latest commit

 

History

History
executable file
·
21 lines (14 loc) · 381 Bytes

iscollection.md

File metadata and controls

executable file
·
21 lines (14 loc) · 381 Bytes

isCollection()

返回True表示这是一个集合(Collection)或集合的子类。

isCollection(maybeCollection: any): boolean
示例
const { isCollection, Map, List, Stack } = require('immutable');
isCollection([]); // false
isCollection({}); // false
isCollection(Map()); // true
isCollection(List()); // true
isCollection(Stack()); // true