11 lines
225 B
JavaScript
11 lines
225 B
JavaScript
'use strict';
|
|
// https://dom.spec.whatwg.org/#interface-nodelist
|
|
|
|
/**
|
|
* @implements globalThis.NodeList
|
|
*/
|
|
class NodeList extends Array {
|
|
item(i) { return i < this.length ? this[i] : null; }
|
|
}
|
|
exports.NodeList = NodeList
|