8 lines
170 B
JavaScript
8 lines
170 B
JavaScript
|
export default function() {
|
||
|
var data = [];
|
||
|
this.visit(function(node) {
|
||
|
if (!node.length) do data.push(node.data); while (node = node.next)
|
||
|
});
|
||
|
return data;
|
||
|
}
|