Source code

Revision control

Copy as Markdown

Other Tools

const handler = {}
function testArray(arr) {
let proxy = new Proxy(arr, handler)
proxy.sort((x, y) => 1 * x - y);
arr.sort((x, y) => 1 * x - y);
}
testArray([5, (this), 2, 99]);