@arrows/array
Version:
Functional tools for JS arrays
16 lines (15 loc) • 495 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.toLocaleString = void 0;
/**
* Functional wrapper for Array.prototype.toLocaleString
*
* Creates a string representation of an array.
* The elements are converted to string using their toLocalString methods.
*
* @param arr Initial array
* @returns String representation
*/
const toLocaleString = (arr) => arr.toLocaleString();
exports.toLocaleString = toLocaleString;
exports.default = toLocaleString;
;