79078977

Date: 2024-10-11 16:06:44
Score: 1.5
Natty:
Report link

In a situation I wanted to get most recent dateTime from an array of dateTime. I tried as-

array.map(function(e) { return e; }).sort().reverse()[0]

Above saved my day.!!!

Reasons:
  • Blacklisted phrase (2): saved my day
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: S.Yadav