#EnchantJS: how to specify enchant.setCategory?
7 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Predicate<Item> is just a function that takes an item as the argument and returns true or false
So something like
item => {
if (item.something) {
return true
}
return false
}```
Or more simply
item => item.something```
okay, thank you. I just did not know how to put it in JS haha
figured it out!