mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 23:44:23 +08:00
16 lines
272 B
JavaScript
16 lines
272 B
JavaScript
"use strict";
|
|
|
|
// No support for subclassing array, return an actual Array object.
|
|
function item(i) {
|
|
/* jshint validthis: true */
|
|
return this[i] || null;
|
|
}
|
|
|
|
function NodeList(a) {
|
|
if (!a) a = [];
|
|
a.item = item;
|
|
return a;
|
|
}
|
|
|
|
module.exports = NodeList;
|