serialize-javascript
Advanced tools
+2
-2
@@ -128,4 +128,4 @@ /* | ||
| if(origValue instanceof Array) { | ||
| var isSparse = origValue.filter(function(){return true}).length !== origValue.length; | ||
| if(Array.isArray(origValue)) { | ||
| var isSparse = Object.keys(origValue).length !== origValue.length; | ||
| if (isSparse) { | ||
@@ -132,0 +132,0 @@ return '@__A-' + UID + '-' + (arrays.push(origValue) - 1) + '__@'; |
+1
-1
| { | ||
| "name": "serialize-javascript", | ||
| "version": "7.0.4", | ||
| "version": "7.0.5", | ||
| "description": "Serialize JavaScript to a superset of JSON that includes regular expressions and functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
19174
-0.11%