UNPKG

uno-js

Version:

JS/TS common used functions, zero dependencies

9 lines (8 loc) 285 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (text) => text.constructor === Array ? text .map((x, i) => (i === 0 ? x : ` ${x}`)) .toString() .replace(/\s+/g, ' ') : text.toString().replace(/\s+/g, ' ');