Skip to content

Commit

Permalink
docs: adjust the documentation of the "keys" and "values" methods (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasnix committed Sep 14, 2024
1 parent a7fffad commit e332995
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/object-graph.doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Returns the length of the object graph.

## keys()

Returns the keys of the object graph.
Returns an iterator object that contains the keys of the object graph.

## values()

Returns the values of the object graph.
Returns an iterator object that contains the values of the object graph.

## get()

Expand Down
4 changes: 2 additions & 2 deletions src/object-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export class ObjectGraph<NodeValue extends Record<string, unknown>> {
}

/**
* @description Returns the keys of the object graph.
* @description Returns an iterator object that contains the keys of the object graph.
* @since 0.1.0
*/
public keys() {
return this.nodes.keys();
}

/**
* @description Returns the values of the object graph.
* @description Returns an iterator object that contains the values of the object graph.
* @since 0.1.0
*/
public values() {
Expand Down

0 comments on commit e332995

Please sign in to comment.