debug += concatenate
This commit is contained in:
parent
f42494749e
commit
b552c0eabb
|
@ -1,8 +1,22 @@
|
||||||
const getTheTitles = function(dict) {
|
const getTheTitles = function (dicts) {
|
||||||
result = Object.keys(dict);
|
let title = [];
|
||||||
console.log(result);
|
dicts.forEach((dict) => {
|
||||||
return result;
|
for (const ttl in dict) {
|
||||||
// test tested retest
|
if (ttl === "title") title += dict[ttl];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
console.log(title);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
getTheTitles([
|
||||||
|
{
|
||||||
|
title: "Book",
|
||||||
|
author: "Name",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Book2",
|
||||||
|
author: "Name2",
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue