@contrail/util
Advanced tools
Comparing version 1.0.61 to 1.0.62
@@ -9,3 +9,3 @@ import { cloneDeep } from './cloneDeep/cloneDeep'; | ||
static getByPath(obj: any, path: string, def?: any): any; | ||
static getBySlugs(obj: any, rootSlug: string, slug: string): any; | ||
static getBySlugs(obj: any, rootSlug: string, slug?: string): any; | ||
static setByPath(obj: any, path: string, value: any): void; | ||
@@ -12,0 +12,0 @@ static chunk(array: any[], size: number): any[]; |
@@ -24,3 +24,3 @@ "use strict"; | ||
const rootValue = obj[rootSlug]; | ||
if (rootValue) { | ||
if (rootValue && slug) { | ||
return rootValue[slug]; | ||
@@ -27,0 +27,0 @@ } |
{ | ||
"name": "@contrail/util", | ||
"version": "1.0.61", | ||
"version": "1.0.62", | ||
"description": "General javascript utilities", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
38594