@mic-rexjs/usecases
Version:
Usecases of Clean Architecture
18 lines (17 loc) • 389 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDataKeyValue = void 0;
var getDataKeyValue = exports.getDataKeyValue = function getDataKeyValue(data) {
if (Object.hasOwn(data, 'id')) {
var id = data.id;
return id;
}
if (Object.hasOwn(data, '_id')) {
var _id = data._id;
return _id;
}
var key = data.key;
return key;
};