.map() method is not mutable, check out its return value:
var arr2 = array.map(item => false)
console.log(arr2)
In functional programming, it's recommended that values do not change often, and JavaScript borrowed it. At least for .map() and .reduce() this is true. Make sure you know .map() well.