How to find all objects where time difference between each consecutive object is less than 1 minute.
const input = [ { id: 12, time: \'2018-03-01T12:34:00.