← Code LabNode.js0/50 solved · 0%
Patterns · medium

24. Priority Queue (2 levels)

Process 'high' priority items before 'low'.

Write `process(items)` where items have `{ priority: 'high' | 'low', val }`. Return sorted array.
Required in your answer: filter...high