appolo-utils
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -84,7 +84,7 @@ import {Classes} from "./classes"; | ||
public static flat<T>(arr:T[]):T[]{ | ||
public static flat<T>(arr:any[]):T[]{ | ||
return arr.reduce((acc, val) => acc.concat(val), []); | ||
} | ||
public static flatDeep<T>(arr:T[],depth:number = 1):T[]{ | ||
public static flatDeep<T>(arr:any[],depth:number = 1):T[]{ | ||
return depth > 0 | ||
@@ -91,0 +91,0 @@ ? arr.reduce((acc, val) => acc.concat(Array.isArray(val) ? Arrays.flatDeep(val, depth - 1) : val), []) |
@@ -17,3 +17,3 @@ { | ||
"main": "./index.js", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"license": "MIT", | ||
@@ -20,0 +20,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
59716