Some trivial stylistic changes

This commit is contained in:
SPGoding
2020-05-25 23:52:28 -05:00
parent abbbc0bbfa
commit e686e8e1a1

View File

@@ -34,8 +34,8 @@ export abstract class AbstractNode<T> implements INode<T> {
transformMod: (v: T) => T
constructor(def: () => T, mods?: NodeMods<T>) {
this.defaultMod = mods?.default ? mods.default : def
this.transformMod = mods?.transform ? mods.transform : (v: T) => v
this.defaultMod = mods?.default ?? def
this.transformMod = mods?.transform ?? ((v: T) => v)
}
setParent(parent: INode<any>) {