
Look up and filter keyed stock levels safely when skus are missing or quantities unknown.
Transform keyed price and item lists with array_map, array_filter and array_reduce.
Sort stock lists and maps by quantity, sku and price with stable, predictable ties.
Accept any number of quantities or batches with variadic parameters and argument unpacking.
Merge warehouse export batches into a per-product summary with totals, ranking and low-stock flags.