urltomarkdown/node_modules/domino/lib/NodeList.es6.js

13 lines
278 B
JavaScript
Raw Normal View History

2022-01-08 17:05:05 +00:00
/* jshint esversion: 6 */
"use strict";
module.exports = class NodeList extends Array {
constructor(a) {
super((a && a.length) || 0);
if (a) {
for (var idx in a) { this[idx] = a[idx]; }
}
}
item(i) { return this[i] || null; }
};