| 1987 | return getOption(element).getOr(''); |
| 1988 | }; |
| 1989 | const getOption = element => is(element) ? Optional.from(element.dom.nodeValue) : Optional.none(); |
| 1990 | const set = (element, value) => { |
| 1991 | if (!is(element)) { |
| 1992 | throw new Error('Can only set raw ' + name + ' value of a ' + name + ' node'); |
no test coverage detected