17题:function f(array,key) { for (let i in array) { if (typeof array[i] === 'object&(10249)#39;) { if (Object.prototype.toString.call(array[i]) === '[object Object]&(14698)#39;) { array[i].key = key } f(array[i],key) } } return array }