MCPcopy Index your code
hub / github.com/larksuite/cli / sortArray

Function sortArray

scripts/issue-labels/test.js:18–20  ·  view source on GitHub ↗

* Convert an array-like value into a sorted string array. * * @param {Array |undefined|null} arr * @returns {string[]}

(arr)

Source from the content-addressed store, hash-verified

16 * @returns {string[]}
17 */
18function sortArray(arr) {
19 return (arr || []).map(String).sort();
20}
21
22/**
23 * Check whether every element in sub exists in sup.

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected