Skip to content

Commit 17ec236

Browse files
committed
docs: fix readme typo
1 parent 725127f commit 17ec236

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ delve(obj, ['a', 'b', 'c']) === 1;
4343
delve(obj, 'a.b') === obj.a.b;
4444

4545
//returns undefined if the full key path does not exist and no default is specified
46-
delve(obj, 'a.b.c.f') === undefined;
46+
delve(obj, 'a.b.f') === undefined;
4747

4848
//optional third parameter for default if the full key in path is missing
49-
delve(obj, 'a.b.c.f', 'foo') === 'foo';
49+
delve(obj, 'a.b.f', 'foo') === 'foo';
5050

5151
//or if the key exists but the value is undefined
52-
delve(obj, 'a.b.c.d', 'foo') === 'foo';
52+
delve(obj, 'a.b.d', 'foo') === 'foo';
5353

5454
//Non-truthy defined values are still returned if they exist at the full keypath
55-
delve(obj, 'a.b.c.e', 'foo') === null;
55+
delve(obj, 'a.b.e', 'foo') === null;
5656

5757
//undefined obj or key returns undefined, unless a default is supplied
5858
delve(undefined, 'a.b.c') === undefined;

0 commit comments

Comments
 (0)