In this array of files, I have to find which file was created the most recently. Do I have to change the format of the date or can function work with it as it is?
let files = [
{
name: 'untitled',
created_at: '2015-02-03T09:43:03Z'
},
{
name: 'ruby files',
created_at: '2014-04-16T22:13:29Z'
},
{
name: 'documents',
created_at: '2016-05-09T09:39:24Z'
}
]