@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvrd/dvr-controls",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Custom web controls",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -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 value;
142
- return null;
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')