(func: ObjectParserMapRawFunc<P>)
| 130 | } |
| 131 | |
| 132 | mapRaw(func: ObjectParserMapRawFunc<P>): this { |
| 133 | const prop = this._property; |
| 134 | if (typeof prop === 'object' && prop !== null && !Array.isArray(prop)) { |
| 135 | for (const label in prop) { |
| 136 | func(prop[label], label, prop); |
| 137 | } |
| 138 | } else { |
| 139 | this._context.onError(new ObjectParserError(this._stack, 'Property is not a non-array object.')); |
| 140 | } |
| 141 | return this; |
| 142 | } |
| 143 | |
| 144 | array(func: ObjectParserArrayFunc<P>): this { |
| 145 | const prop = this._property; |