From 1794b86f5a8fbb135c6264ddfbc9c4a003c486ab Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Sat, 25 Jun 2022 00:50:50 +1200 Subject: [PATCH] Meta tweak (#98) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 06d0f49..b0ed66e 100644 --- a/readme.md +++ b/readme.md @@ -43,7 +43,7 @@ setProperty(object, 'foo.baz', 'x'); console.log(object); //=> {foo: {bar: 'b', baz: 'x'}} -setProperty(object, 'foo.biz.0', 'a'); +setProperty(object, 'foo.biz[0]', 'a'); console.log(object); //=> {foo: {bar: 'b', baz: 'x', biz: ['a']}}