XtraUtils.Function.addMethod('reArg', (function(){
const _toString = Object.prototype.toString,
_isNumber = val => typeof val === 'number',
_reOrg=(a,c)=>{let b=Array(a.length).fill();a.forEach((a,d)=>{b[c[d]]=a;});return b;},
_regularize=(a)=>{let b=[];if('[object Array]'===_toString.call(a)){return a;}keys(a).filter(_isNumber).forEach((c)=>{b[c]=a[c];});return b;};
/**
* Re-arranges the arguments to a function.
* @param {Function} fn The function to remap the arguments.