I have the array with the different timestamp and based on that each timestamp there is some data related to this timestamp. for e.g. I have the data of whole day in array in that array there are the different timestamp and based on each timestamp there are some records based on this timestamp. So I want to search the records in array only from 4am to 6am.
var object = {"main": [
{"timestamp": "1am","name": "name 1"},
{"timestamp": "2am","name": "name 2"},
{"timestamp": "3am","name": "name 1"},
{"timestamp": "4am","name": "name 2"},
{"timestamp": "5am","name": "name 1"},
{"timestamp": "6am","name": "name 2"},
{"timestamp": "7am","name": "name 1"},
{"timestamp": "8am","name": "name 2"},
{"timestamp": "9am","name": "name 1"},
{"timestamp": "10am","name": "name 2"}
]};