Skip to content

Commit bcc16da

Browse files
committed
typo
1 parent 55d2cae commit bcc16da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ O(log(n))
150150
checks if a value exists by its key if the node's key prob is provided in the constructor.
151151

152152
```js
153-
employees.has(50); // true
154-
employees.has(100); // false
153+
employees.hasKey(50); // true
154+
employees.hasKey(100); // false
155155
```
156156

157157
### find
@@ -174,7 +174,7 @@ finds a node by its key if the node's key prob is provided in the constructor.
174174

175175
```js
176176
employees.findKey(60).getValue(); // { id: 60 }
177-
employees.find(100); // null
177+
employees.findKey(100); // null
178178
```
179179

180180
### min

0 commit comments

Comments
 (0)