6 lines
114 B
JavaScript
6 lines
114 B
JavaScript
![]() |
var trim = require('./trim');
|
||
|
|
||
|
module.exports = function clean(str) {
|
||
|
return trim(str).replace(/\s+/g, ' ');
|
||
|
};
|