MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / join

Function join

src/CollectionImpl.js:215–226  ·  view source on GitHub ↗
(separator)

Source from the content-addressed store, hash-verified

213 },
214
215 join(separator) {
216 assertNotInfinite(this.size);
217 separator = separator !== undefined ? '' + separator : ',';
218 let joined = '';
219 let isFirst = true;
220 this.__iterate((v) => {
221 // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- TODO enable eslint here
222 isFirst ? (isFirst = false) : (joined += separator);
223 joined += v !== null && v !== undefined ? v.toString() : '';
224 });
225 return joined;
226 },
227
228 keys() {
229 return this.__iterator(ITERATE_KEYS);

Callers

nothing calls this directly

Calls 3

assertNotInfiniteFunction · 0.85
__iterateMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected