Skip to main content
MIMEParams.prototype.keys - node__util.d.ts - Node documentation
method MIMEParams.prototype.keys

Usage in Deno

```typescript import { MIMEParams } from "node:node__util.d.ts"; ```
MIMEParams.prototype.keys(): IterableIterator<string>
Returns an iterator over the names of each name-value pair. ```js import { MIMEType } from 'node:util'; const { params } = new MIMEType('text/plain;foo=0;bar=1'); for (const name of params.keys()) { console.log(name); } // Prints: // foo // bar ```

Return Type

IterableIterator<string>