method MIMEParams.prototype.keys
Jump to headingMIMEParams.prototype.keys(): IterableIterator<string>
Returns an iterator over the names of each name-value pair.
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 Jump to heading
IterableIterator<string>