From 2150fa58f2c7de152b9eb232d8bbbe5f6beb7a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Koren?= Date: Sat, 5 Oct 2019 15:14:30 +0200 Subject: [PATCH] Fixing Y.Map's documentation of forEach MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #171 As always, it's an honor to submit a PR! 🐒 There was also a missing dot in the Y.XmlFragment title. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ca22fff..39d71354 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,8 @@ or any of its children. Copies the [key,value] pairs of this YMap to a new Object.It transforms all child types to JSON using their toJSON method. - forEach(function(key:string,value:object|boolean|Array|string|number|Uint8Array|Y.Type)) + forEach(function(value:object|boolean|Array|string|number|Uint8Array|Y.Type, + key:string, map: Y.Map))
Execute the provided function once for every key-value pair.
@@ -343,7 +344,7 @@ or any of its children.
- YXmlFragment + Y.XmlFragment

A container that holds an Array of Y.XmlElements.