tf2-item-format
Version:
Format's TF2 items like backpack.tf does
16 lines • 529 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCraftable = isCraftable;
/**
* Checks if item is craftable based off description
* @param {object} description
* @return {boolean}
*/
function isCraftable(description) {
return ![
'( Not Usable in Crafting )',
'( Not Tradable, Marketable, or Usable in Crafting )',
'( Not Tradable, Marketable, Usable in Crafting, or Gift Wrappable )',
].includes(description.value);
}
//# sourceMappingURL=craftable.js.map