We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isObj
1 parent e964df7 commit e3b9e49Copy full SHA for e3b9e49
src/Redite.js
@@ -151,7 +151,7 @@ class Redite {
151
152
const client = this._redis;
153
const stackOneKey = stack.length === 1;
154
- const isObj = typeof value === 'object' && value.constructor === Object;
+ const isObj = value && typeof value === 'object' && value.constructor === Object;
155
156
if (Array.isArray(value) && value.length && stackOneKey) {
157
await client.pdel(stack[0]);
0 commit comments