RELEASE 🚚 1.0.5

- It is related to #6 .
  - It fixes #6 .
This commit is contained in:
abdennour 2017-03-12 23:45:04 +03:00
commit 6dbe82175b
5 changed files with 4230 additions and 5 deletions

4221
cdn/react-csv-1.0.5.js Normal file

File diff suppressed because it is too large Load diff

3
cdn/react-csv-1.0.5.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -183,11 +183,12 @@ var jsonsHeaders = exports.jsonsHeaders = function jsonsHeaders(array) {
var jsons2arrays = exports.jsons2arrays = function jsons2arrays(jsons, headers) {
headers = headers || jsonsHeaders(jsons);
return [headers].concat(_toConsumableArray(jsons.map(function (object) {
var data = jsons.map(function (object) {
return headers.map(function (header) {
return object[header] ? object[header] : '';
return header in object ? object[header] : '';
});
})));
});
return [headers].concat(_toConsumableArray(data));
};
var joiner = exports.joiner = function joiner(data) {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "react-csv",
"version": "1.0.4",
"version": "1.0.5",
"description": "Build CSV files on the fly basing on Array/literal object of data ",
"main": "index.js",
"jsnext:main": "src/index.js",