_.union method incorrect rusult #286

vgololobov opened this Issue May 29, 2013 · 1 comment


None yet

2 participants


expected, according to documentation, this methd should return joined array of unique values - but it returns lodashWrapper instead/
loDash - 1.2.1

steps to reproduce :

// => result should be [1,2], but it is not
jdalton commented May 29, 2013

You're using the chaining syntax and _.union returns a wrapped value.

@jdalton jdalton closed this May 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment