UNPKG

@v4fire/client

Version:

V4Fire client core library

17 lines (13 loc) 457 B
/*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ export const hasIntersection = // tslint:disable-next-line strict-type-predicates typeof IntersectionObserver === 'function' && // tslint:disable-next-line strict-type-predicates typeof IntersectionObserverEntry === 'function' && 'intersectionRatio' in IntersectionObserverEntry.prototype;