Where item.equippable is a boolean,
if (item.equippable == 24) {
return new Equipment(item);
} else {
return null;
}
Doesn't type check, but this does:
if (item.equippable === 24) {
return new Equipment(item);
} else {
return null;
}
Is there just not type checking support on triple equals?