_ => // input i.e : the original array
_.map( // map over all elements of the array
eval(' // eval a string
for(v=_/(d=~~(_*.5d=_>>1); // set v = _ / floor(_ *>> 0.5)1 and set that to d
v!=~~v;) // and keep going until v !== floor(v)
v=_/d--); // subtract from d
v = _/d; // set v to _ / d again (d was changed)
d' // return d
)) // end eval and map and function
This is still for old code haven't updated this.