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

Function toObject

src/methods/toObject.js:4–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { isProtoKey } from '../utils/protoInjection';
3
4export function toObject() {
5 assertNotInfinite(this.size);
6 const object = {};
7 this.__iterate((v, k) => {
8 if (isProtoKey(k)) {
9 return;
10 }
11
12 object[k] = v;
13 });
14 return object;
15}

Callers

nothing calls this directly

Calls 3

isProtoKeyFunction · 0.90
assertNotInfiniteFunction · 0.85
__iterateMethod · 0.45

Tested by

no test coverage detected