Repository URL to install this package:
|
Version:
7.1.2 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const isValidResponseWithHeaders_1 = require("./isValidResponseWithHeaders");
exports.fromResponseToGetHeader = (res, fallback = '') => {
return isValidResponseWithHeaders_1.isValidResponseWithHeaders(res)
? (key) => res.headers.get(key)
: (key) => fallback;
};
//# sourceMappingURL=fromResponseToGetHeader.js.map