@splitsoftware/splitio-commons
Version:
Split JavaScript SDK common components
10 lines (9 loc) • 323 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFetch = void 0;
// It doesn't return a ponyfill if global fetch is not available
function getFetch() {
// eslint-disable-next-line no-undef
return typeof fetch === 'function' ? fetch : undefined;
}
exports.getFetch = getFetch;