bitburner-src/utils/helpers/arrayToString.ts
2018-07-09 13:58:05 -04:00

7 lines
141 B
TypeScript

/**
* Returns the input array as a comma separated string.
*/
export function arrayToString<T>(a: T[]) {
return `[${a.join(", ")}]`;
}