MCPcopy Index your code
hub / github.com/trekhleb/javascript-algorithms / toString

Function toString

src/data-structures/deque/__test__/Deque.test.js:165–165  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

163 deque.addBack({ value: 2, key: 'test2' });
164
165 const toString = (value) => `${value.key}:${value.value}`;
166
167 expect(deque.toString(toString)).toBe('test1:1,test2:2');
168 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected