如何合并这些数组中的哈希:
description = [
{ description: "Lightweight, interpreted, object-oriented language ..." },
{ description: "Powerful collaboration, review, and code management ..." }
]
title = [
{ title: "JavaScript" },
{ title: "GitHub" }
]
所以我得到:
[
{
description: "Lightweight, interpreted, object-oriented language ...",
title: "JavaScript"
},
{
description: "Powerful collaboration, review, and code management ...",
title: "GitHub"
}
]