import INodeList from './INodeList'; import INode from './INode'; /** * Class list. */ export default class NodeList extends Array implements INodeList { /** * Returns item by index. * * @param index Index. */ public item(index: number): INode { return index >= 0 && this[index] ? this[index] : null; } }