mirror of
https://github.com/iptv-org/iptv
synced 2026-09-06 03:50:47 -04:00
Update scripts
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user