Get objects from algolia as an array

Is there a way to get an object from your index and display it in an html table, below is what I have tried so far but it is not working, anyone has suggestions?

code:

index.getObjects([‘myObj1’, ‘myObj2’], function(err, content) {
if (err) throw err;

var body = $(’#tbdata’);
body.append(content);
console.log(content);
});