export default (list, target) => { const { prototype } = target const len = list.length for (let i = 0; i < len; i++) { Object.setPrototypeOf(list[i], prototype) } return list }