import IElement from '../element/IElement.js'; import NodeList from '../node/NodeList.js'; import IRadioNodeList from './IRadioNodeList.js'; /** * RadioNodeList * * @see https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList */ export default class RadioNodeList extends NodeList implements IRadioNodeList { /** * Returns value. * * @returns Value. */ public get value(): string { for (const node of this) { if (node.checked) { return node.value; } } return null; } }