From 224a256f699a52e7a032d2c6d1059dfb98135878 Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 17 Apr 2018 13:34:50 -0700 Subject: [PATCH] Update _.union documentation (#3758) Clarifying example as per https://github.com/lodash/lodash/issues/3757 --- union.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/union.js b/union.js index 5432fbea1..77b3b6b72 100644 --- a/union.js +++ b/union.js @@ -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))