I'm working with an array of objects:
var aoo = [{},{},{},....{},{},{}];
I am looking for an efficient function that can retrieve elements from index n to m. For example:
var getEl = function(from, to) { ... return array }
What is the best way to achieve this optimization?