union-value
Advanced tools
Comparing version
@@ -18,3 +18,3 @@ 'use strict'; | ||
var arr = arrayify(get(obj, prop) || []); | ||
set(obj, prop, union(arr, value || [])); | ||
set(obj, prop, union(arr, arrayify(value || []))); | ||
return obj; | ||
@@ -21,0 +21,0 @@ }; |
{ | ||
"name": "union-value", | ||
"description": "Set an array of unique values as a property of an object, using dot notation.", | ||
"version": "0.1.0", | ||
"description": "Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/jonschlinkert/union-value", | ||
@@ -56,2 +56,2 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
} | ||
} | ||
} |
# union-value [](http://badge.fury.io/js/union-value) | ||
> Set an array of unique values as a property of an object, using dot notation. | ||
> Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation. | ||
@@ -5,0 +5,0 @@ ## Install |
4473
3.16%