16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
|||
Object.fromEntries = Object.fromEntries || function(entries) {
if (!
throw new TypeError('Object.fromEntries
}
var obj = {};
Array.from(entries).forEach(function(entry) {
obj[entry[0]] = entry[1];
});
|