---
schema_version: "1"
id: fb0d15a0dbb75d58b0df38f06a024879703441eab6843243e7da6243b5709323
title: Disallow Use of __iterator__ Property (no-iterator)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/cli/validation-rules-no-iterator.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/validation-rules-no-iterator.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b65166bbfdd216c3128acb158b91e79a5568b844f31ad36523fd3b6658fbcd83
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Disallow Use of \_\_iterator\_\_ Property (no-iterator)

Prevents using the obsolete `__iterator__` property. Use standard JavaScript iterators and generators instead. This is a standard rule built into ESLint.

For complete details about this rule, including examples, see the corresponding ESLint documentation, [Disallow Iterator (no-iterator)](https://eslint.org/docs/rules/no-iterator).
