"use strict" function invertPermutation(pi, result) { result = result || new Array(pi.length) for(var i=0; i