Update scripts

This commit is contained in:
freearhey committed 2026-09-03 14:53:13 +03:00
1 parent b700995496
commit d4f07c0a4c
7 files changed
+81 -39

No files matched your search

+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 {