UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

8 lines (7 loc) 303 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Exports a boolean value reporting whether the given API is supported or not */ var isApiSupported = function (api) { return (typeof window !== 'undefined' ? api in window : false); }; exports.default = isApiSupported;