Skip to content

Remove duplicates from a string by value

I have a JS function which removes duplicates in string. I want to add a duplicate limit to function paremeter. In example if removeDuplicateChracters(“hellomellotesto”, 2 ) expected output should be “hellomeotst”. Answer You can try like this:

Open modal when click on button

I have this code : SepaModal : I have the error : Error in v-on handler: “TypeError: this.$refs.sepaModal.open is not a function”. I tried with this.$refs.sepaModal.show(); (the same error). Very strange bacause I put a console.log and I have sepaModal in refs. Can you help me please ? Thx in adva…