tf2-item-format
Version:
Format's TF2 items like backpack.tf does
18 lines • 692 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
const getElevated_1 = __importDefault(require("./getPropertyAttributes/getElevated"));
function default_1({ item, tags }) {
const attributes = {
elevated: (0, getElevated_1.default)(item, tags),
// Inverts numeric values into booleans
tradable: !!item.tradable,
marketable: !!item.marketable,
commodity: !!item.commodity,
};
return attributes;
}
//# sourceMappingURL=getPropertyAttributes.js.map