all files / api/toJSON/ getLastUpdated.js

100% Statements 3/3
100% Branches 2/2
100% Functions 0/0
100% Lines 3/3
1 2 3 4 5 6 7      13×  
"use strict";
 
const R = require("ramda");
 
module.exports = R.reduce((acc, value) => {
    return (R.path([0, "lastModifiedDate"], value) > acc) ? value[0].lastModifiedDate : acc;
});