Riccardo Polacci
Results
2
comments of
Riccardo Polacci
``` javascript const convertInputToNumber = (input) => { const thousandFixed = input .replace(/(kr|\$|£|€)/g, '') // getting rid of currency .trim() .replace(/(.+)[.,](\d+)$/g, "$1x$2") // stripping number into $1: integer and $2:...
You can compute the value of the input. Imagine I have the `value` received in `props` or declared in `data`: ``` javascript computed: { formattedAmount() { return this.decimalFormat(this.value); } },...