@dvrd/dvr-controls 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/js/util/miscUtil.ts +2 -2
package/package.json
CHANGED
package/src/js/util/miscUtil.ts
CHANGED
|
@@ -138,8 +138,8 @@ export const shuffleArray = (arr: any[]): any[] => {
|
|
|
138
138
|
|
|
139
139
|
export function nullify<T extends string | Array<any> | Set<any> | number | bigint>(value?: T | null): T | null {
|
|
140
140
|
if (typeof value === 'number' || typeof value === 'bigint') {
|
|
141
|
-
if (value === 0) return
|
|
142
|
-
return
|
|
141
|
+
if (value === 0) return null;
|
|
142
|
+
return value;
|
|
143
143
|
}
|
|
144
144
|
if (!value) return null;
|
|
145
145
|
else if (Array.isArray(value) || typeof value === 'string')
|