ishanvyas22 / cakephpvue-spa

Use const declarations for variables that are never reassigned JS-0242
Anti-pattern
Minor
5 months ago5 months old
'data' is never reassigned. Use 'const' instead
52                    });
53            },
54            onSubmit(event) {
55                let data = formSerialize(event.target, {56                    hash: false,
57                    empty: true
58                });
'data' is never reassigned. Use 'const' instead
36        },
37        methods: {
38            onSubmit(event) {
39                let data = formSerialize(event.target, {40                    hash: false,
41                    empty: true
42                });