0

duplicate the row of an array retrieve the same data (javascript) I tried that but it adds an empty line in vuejs.

folders is may table

function(folder) {
    this.folders.push(folder);
    folder={
        employee:"this.employee", 
        contact:"this.contact", 
         endContact:"this.endContact", 
        enterp:"this.enterp", 
        dossi:"this.dossi", 
        status:"this.status"
    }
}
Andronicus
  • 25,419
  • 17
  • 47
  • 88
  • Possible duplicate of [Javascript function scoping and hoisting](https://stackoverflow.com/questions/7506844/javascript-function-scoping-and-hoisting) – AZ_ Aug 22 '19 at 12:10
  • (1) is the function anonymous on purpose ? (2) you should not reassign a function parameter. (3) you assign folder and return, which makes the assignation useless. – Apolo Aug 22 '19 at 13:56
  • I do'nt understand can you make me an example thank you –  Aug 22 '19 at 15:58
  • I just want to duplicate the same line in a table I can not do it –  Aug 22 '19 at 16:00

0 Answers0