MCPcopy Create free account
hub / github.com/blacksmithgu/datacore / join

Method join

src/api/data-array.ts:281–285  ·  view source on GitHub ↗
(sep?: string)

Source from the content-addressed store, hash-verified

279 }
280
281 public join(sep?: string): string {
282 return this.map((s) => Literals.toString(s))
283 .array()
284 .join(sep ?? ", ");
285 }
286
287 public sort<U>(key?: ArrayFunc<T, U>, direction?: "asc" | "desc", comparator?: ArrayComparator<U>): DataArray<T> {
288 if (this.values.length == 0) return this;

Callers

nothing calls this directly

Calls 4

mapMethod · 0.95
joinMethod · 0.65
arrayMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected