computed value is not an empty array when fields are undefined
See original GitHub issuehi, ran into an issue today when attempting to use del()
I have an array for a field
let fields = [
'argh',
'argh[]',
]
if i give argh
the value [‘a’, ‘b’, ‘c’]
and then attempt to do form.$(argh).del(1)
the new value will be ['b', 'c']
(1-based index) instead of ['a', 'c']
(0-based index)
is this intentional? if so why?
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
vue.js - VueJS: variable is undefined inside computed only
The weird thing is that address variable is successfully used in other parts of my component. My vue file below: <template lang="pug"> b-field( ......
Read more >When would a computed() value be undefined? - Vue Forum
This systematically returns an empty Array (or an undefined without the unref ). This is despite the fact that possibleTags are correctly ...
Read more >Check if an array is empty or not in JavaScript - GeeksforGeeks
Method 2: Checking the type and length of the array: The array can be checked if it exists by checking if the type...
Read more >useForm - setValue - React Hook Form
The value for the field. This argument is required and can not be undefined . options, shouldValidate, boolean. Whether to compute if your...
Read more >Determine whether array is empty - MATLAB isempty
An array containing missing values, such as NaN or <undefined> , is not necessarily empty. Create a categorical vector with missing values.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
alrites. i’ll test further once you’ve got a fix. thanks again for responsiveness.
The handling of arrays is improved in version 1.19