diff --git a/README.md b/README.md index b2eae56..af8af41 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ import { keys, fromArray } from '@typed/hashmap'; const map = fromArray([ ['a', 1], ['b', 2], ['c', 3] ]) -const iterator = keys(map) +const iterator = values(map) console.log(iterator.next().value) // 1 console.log(iterator.next().value) // 2 @@ -260,4 +260,4 @@ import { filter, forEach, fromObject } from '@typed/hashmap'; const a = filter(x => x % 2 === 0, fromObject({ a: 1, b: 2, c: 3 })) forEach((value, key) => console.log(value, key), a) // 'b' 2 -``` \ No newline at end of file +```