Replace Primitive with Object

refactorgram

orders.filter(o => "high" === o.priority
                || "rush" === o.priority);

image/svg+xml

orders.filter(o => o.priority.higherThan(new Priority("normal")))

aliases Replace Data Value with Object, Replace Type Code with Class