Javascript Functional Programming Methods (forearch, map, ..) loop get index

javascript foreach loop index example:

["cat", "dog", "bird"].forEach((item, index)=>{
	console.log("index: " + index + " item: " + item);
})