From aa1ba74ef09e967a77e71b0c5022ac7fe8fcdd9c Mon Sep 17 00:00:00 2001 From: Abhas Bhattacharya Date: Sun, 12 Jul 2020 15:17:13 +0530 Subject: [PATCH] update post: How does in-built Array iterator work? --- ckciw2lr900d0xas144h5fpwm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckciw2lr900d0xas144h5fpwm.md b/ckciw2lr900d0xas144h5fpwm.md index 9ed52a1..c0db3d9 100644 --- a/ckciw2lr900d0xas144h5fpwm.md +++ b/ckciw2lr900d0xas144h5fpwm.md @@ -2,7 +2,7 @@ We use `[...someArray]` or `array.values()` to get multiple values out of a array. And we kind of know how it works - it just returns us all the values from the array. Internally, both of them uses the iterator protocol - which is already defined on array prototype. -But do we really know the details of how in-built Array iterator works? Can you write a precise polyfill to implement iterator protocol on Array? +But do we know exactly how the in-built Array iterator works? Can you write a precise polyfill to implement iterator protocol on Array? ## A little about the iterator protocol