Repository URL to install this package:
|
Version:
1.1.3 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getBump(initData, categoryId) {
for (var _i = 0, _a = initData.bumps; _i < _a.length; _i++) {
var bump = _a[_i];
if (categoryId === bump.category) {
return bump;
}
}
throw new Error("No bump found for category: " + categoryId);
}
exports.getBump = getBump;
exports.default = getBump;
//# sourceMappingURL=getBump.js.map