npmtest-mout (v0.0.1)

Code coverage report for node-npmtest-mout/node_modules/mout/array/reverse.js

Statements: 40% (2 / 5)      Branches: 100% (0 / 0)      Functions: 0% (0 / 1)      Lines: 40% (2 / 5)      Ignored: none     

All files » node-npmtest-mout/node_modules/mout/array/ » reverse.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16          1           1        
 
 
    /**
     * Returns a copy of the array in reversed order.
     */
    function reverse(array) {
        var copy = array.slice();
        copy.reverse();
        return copy;
    }
 
    module.exports = reverse;