Array.prototype.map could not work with array1 root here, because it returns an array of the same length, which is not what you want.

If you want another length you can use Array.prototype.reduce, and then use Array.prototype.map for each object tels.

var array2 = array1.reduce(function (prev, curr) {
    return prev.concat(curr.tels.map(function (tel) {
        return {name: curr.name, tel: tel};
    }));
}, []);


Javascript arrays: Given array[n], get array[n*m]
At my church (Calvary Chapel) we have guest speakers from time to time. Many of them mention the same phrase "living in darkness", refering to the time before they were saved.

Are there Biblical (or more specifically New Testament) references to this concept and a description of what it entails or is it just a relative and subjective phrase coined by man?
