(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const)
| 1219 | // `for-in` statement. |
| 1220 | // With option `ownProperties` replaced with a `for-of` loop for object keys |
| 1221 | forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) { |
| 1222 | if (this.opts.ownProperties) { |
| 1223 | return this.forOf(nameOrPrefix, (0, code_1._) `Object.keys(${obj})`, forBody); |
| 1224 | } |
| 1225 | const name = this._scope.toName(nameOrPrefix); |
| 1226 | return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)); |
| 1227 | } |
| 1228 | // end `for` loop |
| 1229 | endFor() { |
| 1230 | return this._endBlockNode(For); |
no test coverage detected