// Is this valid? function validateStockInItems() { if (stockInItemsToUpdate.length === 0) return true; return true; }
Found in a legacy code base for a stock management system. I will be rewriting said system soon.