(obj)
| 2152 | } |
| 2153 | |
| 2154 | function 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 | } |
| 2163 | Encoder.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 |