let arrList = []; for (let i in movedKeys) { var j = {}; j.packageSenderId = movedKeys[i] arrList.push(j); }