()
| 2 | import { isProtoKey } from '../utils/protoInjection'; |
| 3 | |
| 4 | export 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 | } |
nothing calls this directly
no test coverage detected