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

Function invertObject

lib/encoder.js:2154–2162  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2152}
2153
2154function invertObject(obj) {
2155 const rv = {};
2156 for(const k in obj){
2157 if (obj.hasOwnProperty(k)) {
2158 rv[obj[k]] = k;
2159 }
2160 }
2161 return rv;
2162}
2163Encoder.isTypedArray = function(arg) {
2164 // The TypedArray superclass isn't available directly so to detect an instance of a TypedArray
2165 // subclass we have to access the prototype of a concrete instance. There's nothing magical about

Callers 1

encoder.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected