From 5e10d28d7d39e9bfaa1e3206da17e5c9f1f31033 Mon Sep 17 00:00:00 2001 From: Andrew Hu Date: Wed, 3 Oct 2018 08:35:48 -0700 Subject: [PATCH] Fix typo in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```