5 lines
103 B
JavaScript
5 lines
103 B
JavaScript
|
|
module.exports = function replace(from, to){
|
||
|
|
return function(d){
|
||
|
|
return d.replace(from, to)
|
||
|
|
}
|
||
|
|
}
|