UNPKG

@thi.ng/checks

Version:

Collection of 70+ type, feature & value checks

9 lines (8 loc) 163 B
const isSetOf = (pred) => (x) => { if (!(x instanceof Set)) return false; for (let y of x) if (!pred(y)) return false; return true; }; export { isSetOf };