master
import curry from 'curry'; function replace(oldItem, newItem, array) { return array.map(item => { if (item === oldItem) { return newItem; } return item; }); } export default curry(replace);