Array indexed by timestamp. It's a very simple class to handle an array using timestamp as a key. Just that.
The timestamp is incremental.
You can test the class creating an index.html file with the next content:
<!DOCTYPE html>
<html>
<head>
<script src="aits.js"></script>
</head>
<body>
</body>
</html>
and then you can use the console from your browser.
Create the array and fill with value. By default value is null.
let arr = new aits(<timestamp1>, <timestamp2>, <value>);
let value = <instance>.get(<timestamp>);
If success return the value if not return false.
let value = <instance>.set(<timestamp>, <value>);
If success return true if not return false.
By default callback is console.log.
<instance>.print(<callback>);
Move values list from timestamp to beginning of array and fill the rest with value.
By default value is null.
<instance>.scroll(<timestamp>, <value>);
If success return true if not return false.