UNPKG

567 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.extractODataEtagV4 = exports.extractODataEtag = void 0;
4/**
5 * Extractor for the ETag for OData v4 responses used in [[entityDeserializer]].
6 * @param json - Response data from which the ETag is extracted.
7 * @returns The ETag.
8 */
9function extractODataEtag(json) {
10 return json === null || json === void 0 ? void 0 : json['@odata.etag'];
11}
12exports.extractODataEtag = extractODataEtag;
13exports.extractODataEtagV4 = extractODataEtag;
14//# sourceMappingURL=extract-odata-etag.js.map
\No newline at end of file