From 56923feb8095e275eb3ef853a53cd9b3476f8260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Go=C5=9Bci=C5=84ski?= Date: Wed, 9 Feb 2022 03:13:02 +0100 Subject: [PATCH] chore: readme example errors (#30) --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index ceea4e7..e1e3ad3 100644 --- a/readme.md +++ b/readme.md @@ -56,13 +56,13 @@ console.log(foo); //=> } let bar = { a: { x: 7 }, b:[1, 2, 3] }; -dset(bar, 'bar.1', 999); -// or: dset(bar, ['bar', 1], 999); -// or: dset(bar, ['bar', '1'], 999); +dset(bar, 'b.1', 999); +// or: dset(bar, ['b', 1], 999); +// or: dset(bar, ['b', '1'], 999); console.log(bar); //=> { //=> a: { x: 7 }, -//=> bar: [1, 999, 3], +//=> b: [1, 999, 3], //=> } dset(bar, 'a.y.0', 8); @@ -74,7 +74,7 @@ console.log(bar); //=> x: 7, //=> y: [8], //=> }, -//=> bar: [1, 999, 3], +//=> b: [1, 999, 3], //=> } let baz = {};