remove bare for .. of iterations - fixes #220
This commit is contained in:
@@ -180,9 +180,9 @@ export class Doc extends Observable {
|
||||
*/
|
||||
const doc = {}
|
||||
|
||||
for (const [k, v] of this.share.entries()) {
|
||||
doc[k] = v.toJSON()
|
||||
}
|
||||
this.share.forEach((value, key) => {
|
||||
doc[key] = value.toJSON()
|
||||
})
|
||||
|
||||
return doc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user