Comparing version 0.3.6 to 0.3.7
{ | ||
"name": "sv", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Any separated values.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -102,2 +102,2 @@ # sv | ||
Copyright © 2013 Christopher Brown. [MIT Licensed](LICENSE). | ||
Copyright © 2013-2015 Christopher Brown. [MIT Licensed](LICENSE). |
@@ -69,5 +69,7 @@ 'use strict'; /*jslint node: true, es5: true, indent: 2 */ | ||
length = this.columns.length; | ||
// pull properties off the given object in proper column order | ||
var list = new Array(length); | ||
for (var i = 0; i < length; i++) { | ||
list[i] = obj[this.columns[i]] || this.missing; | ||
var column_value = obj[this.columns[i]]; | ||
list[i] = (column_value === undefined) ? this.missing : column_value; | ||
} | ||
@@ -74,0 +76,0 @@ obj = list; |
45867
1021