misoproject / dataset

JavaScript library that makes managing the data behind client-side visualisations easy
http://misoproject.com
GNU General Public License v2.0
1.18k stars 99 forks source link

ds.where inserts _id data when passing array as value to columns option #219

Open allthesignals opened 10 years ago

allthesignals commented 10 years ago
var cut = ds.where({ columns: config.data
                     , rows: function(row) { 
                          return row[config.where.column] == config.where.value } 
                    })

I'm just trying to understand this better, and maybe this isn't the proper use case, but when using an array from an object in the columns property, I notice _id data is pushed into the config.data array. Is this intended?