• + 1 comment

    or just

    arr.map(Math.abs)