union-value
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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 [![NPM version](https://badge.fury.io/js/union-value.svg)](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 |
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
4473