Repository navigation
Return un-wrapped Float and Ints by default. - #84
Conversation
Codecov Report
@@ Coverage Diff @@
## master #84 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 11 11
Lines 1214 1221 +7
=====================================
+ Hits 1214 1221 +7
Continue to review full report at Codecov.
|
7e71d0e to
019038c
Compare
|
@WaldoJeffers feel free to check this out! |
| */ | ||
| function generateToJSONFromRow(row) { | ||
| return function(options) { | ||
| options = options || { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| var serializedRow = {}; | ||
|
|
||
| row.forEach(function(keyVal) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@WaldoJeffers great suggestions! Made the changes :) |
|
|
||
| codec.Int = Int; | ||
|
|
||
| function generateToJSONFromRow(row) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| function generateToJSONFromRow(row) { | ||
| return function(options) { | ||
| options = options || { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
eb9436f to
b9ee205
Compare
Fixes #80
When
toJSON()is called on a Row object, Float64 and Int64 values will now be returned as a JavaScript Number: