Method o
// Replace all values of array with one const replacer = o(map, always); replacer(3)([1,2,3]); //=> [3, 3, 3]