Update _.union documentation (#3758)

Clarifying example as per https://github.com/lodash/lodash/issues/3757
This commit is contained in:
Tyler
2018-04-17 13:34:50 -07:00
committed by John-David Dalton
parent da0fad328a
commit 224a256f69

View File

@@ -14,8 +14,8 @@ import isArrayLikeObject from './isArrayLikeObject.js'
* @see difference, unionBy, unionWith, without, xor, xorBy
* @example
*
* union([2], [1, 2])
* // => [2, 1]
* union([2, 3], [1, 2])
* // => [2, 3, 1]
*/
function union(...arrays) {
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true))