UNPKG

yinxing

Version:
2 lines (1 loc) 78 B
qs=([h,...t])=>h ? [x=>...qs(t.filter(x=>x<=h)),h,...qs(t.filter(x=>x>h))]:[]