Skip to content
0

katanakit-js / useIsSupported

Function: useIsSupported() ​

ts
function useIsSupported(): boolean;

Defined in: src/infrastructure/observer/observer.service.ts:50

Checks whether IntersectionObserver is available in the current environment.

Returns ​

boolean

true if IntersectionObserver is supported.

Example ​

ts
if (useIsSupported()) {
  // safe to use observer APIs
}

Released under the MIT License.