mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
302 B
JavaScript
17 lines
302 B
JavaScript
'use strict';
|
|
|
|
class DependencyChain {
|
|
constructor(array) {
|
|
this.array = array || [];
|
|
}
|
|
|
|
append(str) {
|
|
return new DependencyChain(this.array.concat(str));
|
|
}
|
|
|
|
toString() {
|
|
return '[' + this.array.join(' → ') + ']';
|
|
}
|
|
}
|
|
|
|
module.exports = DependencyChain; |