thi-ng/umbrella

View on GitHub
packages/checks/src/is-iterable.ts

Summary

Maintainability
A
1 hr
Test Coverage
export const isIterable = <T = any>(x: any): x is Iterable<T> =>
    x != null && typeof x[Symbol.iterator] === "function";