handy-redis
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -1,1 +0,1 @@ | ||
export declare const flattenDeep: (args: any[]) => any[]; | ||
export declare const flattenDeep: (array: any[]) => any[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.flattenDeep = (args) => { | ||
if (!Array.isArray(args)) { | ||
return args; | ||
exports.flattenDeep = (array) => { | ||
const flat = []; | ||
for (const item of array) { | ||
Array.isArray(item) ? flat.push(...exports.flattenDeep(item)) : flat.push(item); | ||
} | ||
return [].concat(...args.map(exports.flattenDeep)); | ||
return flat; | ||
}; |
{ | ||
"name": "handy-redis", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "A wrapper around node_redis with Promise and TypeScript support.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
588773
14861