“MediaWiki:Gadget-site-lib.js”的版本间差异

添加40字节 、​ 2022年1月20日 (四) 02:44
无编辑摘要
 
Object.fromEntries = Object.fromEntries || function(entries) {
if (!Array.isArray(typeof entries === 'object' && Symbol.iterator in entries)) {
throw new TypeError('Object.fromEntries的polyfill只接受数组iterable作为参数!');
}
var obj = {};
Array.from(entries).forEach(function(entry) {
obj[entry[0]] = entry[1];
});
16,874

个编辑