bitburner-src/utils/helpers/arrayToString.ts

7 lines
141 B
TypeScript
Raw Normal View History

2018-07-08 07:11:34 +02:00
/**
* Returns the input array as a comma separated string.
*/
export function arrayToString<T>(a: T[]) {
return `[${a.join(", ")}]`;
}