the editable site (validation-lab)
This commit is contained in:
commit
3ac81d5a52
13454 files changed
+2227005
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
/* 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; }
|
||||
};
|
||||
Reference in new issue
Block a user