9 lines
190 B
JavaScript
9 lines
190 B
JavaScript
// https://dom.spec.whatwg.org/#interface-nodelist
|
|
|
|
/**
|
|
* @implements globalThis.NodeList
|
|
*/
|
|
export class NodeList extends Array {
|
|
item(i) { return i < this.length ? this[i] : null; }
|
|
}
|