shithub: mycel

ref: 49e401ef4b569e9c6b305648af6f7e652d575d2f
dir: /domino/domino-lib/NodeList.es6.js/

View raw version
/* 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; }
};