🎉 🎉 coverage of core testing reaches 80% 🌹 🍻
This commit is contained in:
parent
05a02765d0
commit
f47d6ee7be
3 changed files with 190 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ export const jsonsHeaders = ((array) => Array.from(
|
|||
|
||||
export const jsons2arrays = (jsons, headers) => {
|
||||
headers = headers || jsonsHeaders(jsons);
|
||||
return [headers, ...array.map((object) =>
|
||||
return [headers, ...jsons.map((object) =>
|
||||
headers.map((header) =>
|
||||
object[header] ? object[header] : ''))]
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue