# babel-plugin-transform-for-of-array

> for-of statement transformer which only support array or array-like object

Latest version **1.0.0** (published 2016-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-for-of-array
pnpm add babel-plugin-transform-for-of-array
yarn add babel-plugin-transform-for-of-array
bun add babel-plugin-transform-for-of-array
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-31 |
| First published | 2016-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zongyu |
| Maintainers | liuxuanzy |
| Keywords | babel-plugin, for-of |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-for-of-array
- Repository: https://github.com/ecomfe/babel-plugin-transform-for-of-array
- Homepage: https://github.com/ecomfe/babel-plugin-transform-for-of-array#readme
- Issues: https://github.com/ecomfe/babel-plugin-transform-for-of-array/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-for-of-array

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-05-31

## README

# babel-plugin-transform-for-of-array
for-of statement transformer which only support array or array-like object.

## Difference
es2015 for-of statement support Array, Iterators and Generators.
because Iterators and Generators can't shim easily, we just support Array or Array-like Object.

## Installation

``` sh
$ npm install babel-plugin-transform-for-of-array --save-dev
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "plugins": ["transform-for-of-array"]
}
```

### Via CLI

```sh
$ babel --plugins transform-for-of-array script.js
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  plugins: ["transform-for-of-array"]
});
```

---
_Source: https://npm.io/package/babel-plugin-transform-for-of-array · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
