terate over the entire menuLinks array and for each "link" object: code example
Example 1: jquery loop through array
var arr = ['one','two','three','four','five'];
$.each(arr, function(index, value){
console.log('The value at arr[' + index + '] is: ' + value);
});
Example 2: javascript loop through array of objects
let arr = [object0, object1, object2];
for (let elm of arr) {
console.log(elm);
}