Update scripts

This commit is contained in:
freearhey
2026-09-03 14:53:13 +03:00
parent b700995496
commit d4f07c0a4c
7 changed files with 81 additions and 39 deletions
+7 -3
View File
@@ -11,7 +11,9 @@ export class DataSet {
}
missing(key: string): boolean {
return this._data.missing(key) || this._data.get(key) === undefined
const keys = Array.isArray(key) ? key : [key]
return keys.every(_key => this._data.get(_key) === undefined)
}
isDeleted(key: string): boolean {
@@ -20,8 +22,10 @@ export class DataSet {
return this._data.get(key) === deleteSymbol
}
getBoolean(key: string): boolean {
return Boolean(this._data.get(key))
getBoolean(key: string): boolean | undefined {
if (this.missing(key)) return undefined
return this._data.get(key) === 'TRUE' ? true : false
}
getString(key: string): string | undefined {