@openxmldev/linq-to-xml
Version:
LINQ to XML for TypeScript
22 lines • 426 B
JavaScript
/**
* @author Thomas Barnekow
* @license MIT
*/
/**
* A super-simple and preliminary implementation of a `StringBuilder`.
*
* @internal
*/
export class StringBuilder {
constructor() {
this.array = [];
}
append(text) {
this.array.push(text);
return this;
}
toString() {
return this.array.join('');
}
}
//# sourceMappingURL=StringBuilder.js.map