Arrays loops

by Inam Taj

JavaScript

var arr = new Array(43, 79, 25, 03, 31, 30, 34);
function myCallBack(value, index, array) {
	var isGood = false;
  if (value > (4)) {
  	isGood = true;
  }
  console.log(isGood);
  return isGood;
  //console.log("result: " + isGood);
}
console.log(">>>> processing: ");
var res = arr.map(myCallBack);
console.log(res);