MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / toJSON

Method toJSON

lib/host.js:642–654  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

640 }
641
642 toJSON() {
643 // Node.js 10 and below don't support Object.fromEntries()
644 if (Object.fromEntries) {
645 return Object.fromEntries(this._items);
646 }
647
648 const obj = {};
649 for (const [ key, value ] of this._items) {
650 obj[key] = value;
651 }
652
653 return obj;
654 }
655}
656
657module.exports = {

Callers 1

polygon-tests.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected