@hmcts/rpx-xui-node-lib
Version:
Common nodejs library components for XUI
14 lines • 426 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.sortArray = void 0;
/**
* Sort the array alphabetically
*
* We clone the original array, so that we avoid mutation.
*
* @param array - an array of strings that are required to be sorted alphabetically
* @return string[]
*/
const sortArray = (array) => array.sort();
exports.sortArray = sortArray;
//# sourceMappingURL=sortArray.js.map