UNPKG

@studyportals/sp-r2d2

Version:

A framework that contains various components used when developing projects that will be deployed via AWS λ.

16 lines 588 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BatchGetItemsResult = void 0; class BatchGetItemsResult { constructor(items) { this.items = items; } merge(other) { other.items.forEach((otherItem) => { const matchingItem = this.items.find((x) => x.tableName === otherItem.tableName); matchingItem ? matchingItem.merge(otherItem) : this.items.push(otherItem); }); } } exports.BatchGetItemsResult = BatchGetItemsResult; //# sourceMappingURL=batch-get-item-result.class.js.map