Files
codeql/javascript/ql/src/LanguageFeatures/examples/DebuggerStatement.js
2018-08-02 17:53:23 +01:00

12 lines
279 B
JavaScript

function qsort(a) {
if (a.length == 0) return [];
var left = [], right = [], pivot = a[0];
for (var i = 1; i < a.length; i++) {
debugger;
a[i] < pivot ? left.push(a[i]) : right.push(a[i]);
}
return qsort(left).concat(pivot, qsort(right));
}