_.union method incorrect rusult #286

Closed
vgololobov opened this Issue May 29, 2013 · 1 comment

Projects

None yet

2 participants

@vgololobov

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 :

_([1]).union([2]) 
// => result should be [1,2], but it is not
Owner
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