appwrite-utils
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -51,3 +51,3 @@ import { DateTime } from "luxon"; | ||
if (value === null || value === undefined || value === "") | ||
return value; | ||
return []; | ||
if (Array.isArray(value)) { | ||
@@ -54,0 +54,0 @@ return value; |
{ | ||
"name": "appwrite-utils", | ||
"module": "dist/index.js", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -54,3 +54,3 @@ import { DateTime } from "luxon"; | ||
anyToAnyArray(value: any): any[] { | ||
if (value === null || value === undefined || value === "") return value; | ||
if (value === null || value === undefined || value === "") return []; | ||
if (Array.isArray(value)) { | ||
@@ -57,0 +57,0 @@ return value; |
344233