Skip to main content
Module

x/ramda/test/descend.js

:ram: Practical functional Javascript
Latest
File
var R = require('../source');var eq = require('./shared/eq');
describe('descend', function() { it('builds a descending comparator function out of the identity function', function() { eq([3, 1, 8, 1, 2, 5].sort(R.descend(R.identity)), [8, 5, 3, 2, 1, 1]); });});