Skip to content

Commit a50a98b

Browse files
📚 docs(README): Update code sample.
1 parent 24fed7e commit a50a98b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ Parent is
99
[js-data-structures](https://github.com/make-github-pseudonymous-again/js-data-structures).
1010

1111
```js
12-
import { DoublyLinkedList } from '@list-abstraction/doubly-linked-list' ;
13-
14-
let list = new DoublyLinkedList( ) ;
15-
for (const value of 'abc') list.push(value);
12+
import {DoublyLinkedList} from '@list-abstraction/doubly-linked-list';
1613

14+
let list = DoublyLinkedList.from('abc');
1715
for (const value of list) ... ;
1816
```
1917

0 commit comments

Comments
 (0)