What are the built-in iterables

Posted by Jessica Taylor | Updated on

Below are the list of built-in iterables in javascript,

  1. Arrays and TypedArrays
  2. Strings: Iterate over each character or Unicode code-points
  3. Maps: iterate over its key-value pairs
  4. Sets: iterates over their elements
  5. arguments: An array-like special variable in functions
  6. DOM collection such as NodeList

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers