mirror of
https://github.com/alrayyes/wiki.git
synced 2024-12-01 15:26:23 +00:00
26 lines
717 B
Markdown
26 lines
717 B
Markdown
|
---
|
||
|
id: f1c572d5-868b-4ce0-b1ac-9f7cc32dae3d
|
||
|
title: JavaScript Iterables
|
||
|
---
|
||
|
|
||
|
# Introduction
|
||
|
|
||
|
An *iterable* is a data structure that wants to make its elements
|
||
|
accessible to the public. It does so by implementing a method whose key
|
||
|
is
|
||
|
[Symbol.iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator).
|
||
|
That method is a factory for
|
||
|
[iterators](20201014092846-javascript_iterator).
|
||
|
|
||
|
# Iterable values
|
||
|
|
||
|
- [Arrays](20200826201029-arrays)
|
||
|
- [Strings](20200922164551-strings)
|
||
|
- [Maps](20201012093745-javascript_maps)
|
||
|
- [Sets](20201012094248-javascript_sets)
|
||
|
- DOM data structures
|
||
|
|
||
|
# See also
|
||
|
|
||
|
- [Destructuring Iterables](20201103112001-destructuring_iterables)
|