Comparing version 0.1.2 to 0.1.3
@@ -76,2 +76,4 @@ (function (JSUS) { | ||
OBJ._obj2Array = function(obj, keyed, level, cur_level) { | ||
if ('object' !== typeof obj) return [obj]; | ||
if (level) { | ||
@@ -266,2 +268,9 @@ var cur_level = ('undefined' !== typeof cur_level) ? cur_level : 1; | ||
/** | ||
* Returns the value of a property of an object, as defined | ||
* by the input string. The string can contains '.', and in that | ||
* case the method looks for nested objects. | ||
* | ||
* Returns undefined if the nested key is not found. | ||
*/ | ||
OBJ.getNestedValue = function (str, obj) { | ||
@@ -268,0 +277,0 @@ if (!obj) return; |
{ | ||
"name": "JSUS", | ||
"description": "JavaScript UtilS. Collection of general purpose functions. JSUS helps!", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"keywords": [ "util", "general", "array", "eval", "time", "date", "object"], | ||
@@ -6,0 +6,0 @@ "author": "Stefano Balietti <futur.dorko@gmail.com>", |
18821
605