Spaces:
Sleeping
Sleeping
File size: 309 Bytes
50c0328 |
1 2 3 4 5 6 7 8 9 10 |
self.addEventListener('message', function(e) {
var data = e.data;
if (data.type === 'filter') {
var filteredData = data.allData.filter(function(d) {
return data.modelType === 'all' || d.model_type === data.modelType;
});
self.postMessage({type: 'filtered', data: filteredData});
}
});
|