Permalink
Browse files

union handles null, 2.11.1

  • Loading branch information...
1 parent d044fcf commit cef3cf42a3e11d648393d4a2fd7119307e92f700 @dominictarr committed Nov 18, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 arrays.js
  2. +1 −1 package.json
View
@@ -76,7 +76,7 @@ function union (a, b) {
if(!~c.indexOf(item))
c.push(item)
}
- a.forEach(add)
- b.forEach(add)
+ if(a) a.forEach(add)
+ if(b) b.forEach(add)
return c
}
View
@@ -1,5 +1,5 @@
{ "name": "ubelt"
-, "version": "2.10.0"
+, "version": "2.11.1"
, "description": "utility belt was (Dominic's Utilities)"
, "homepage": "http://github.com/dominictarr/d-utils"
, "main": "./index.js"

0 comments on commit cef3cf4

Please sign in to comment.