array in object?
See original GitHub issueThis is amazingly useful and neat!
question: I happen to pass on the item array inside an object, i.e.
instead of
let items = [ {id: 1, name: "item1"}, {id: 2, name: "item2"}, {id: 3, name: "item3"}, {id: 4, name: "item4"} ];
I have
let node = { items: [ {id: 1, name: "item1"}, {id: 2, name: "item2"}, {id: 3, name: "item3"}, {id: 4, name: "item4"} ]; other: 'somehting' };
but I get a compile error if I now use
use:dndzone={{node.items, flipDurationMs}}
it doesn’t like the .-notation
Do you know of any simple trick? I would very much need to keep the structure of node.items as node also carries other information.
Thanks for this!!
Issue Analytics
- State:
- Created 3 years ago
- Comments:36 (17 by maintainers)
Top Results From Across the Web
Data Structures: Objects and Arrays - Eloquent JavaScript
Objects and arrays (which are a specific kind of object) provide ways to group several values into a single value. Conceptually, this allows...
Read more >Array inside a JavaScript Object? - Stack Overflow
To assign a two dimensional array to an object you have a few options. You can initialise the empty 2D array first: myObject....
Read more >JavaScript Array of Objects Tutorial – How to Create, Update ...
In this article, I'll show you the basics of working with object arrays in JavaScript. If you ever worked with a JSON structure,...
Read more >JavaScript Arrays - W3Schools
Arrays are a special type of objects. The typeof operator in JavaScript returns "object" for arrays. But, JavaScript arrays are best described as...
Read more >Array Object
The Array Object ... Arrays are data structures that store information in a set of adjacent memory addresses. In practice, this means is...
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 Free
Top 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

thx for verifying. merged
perfect! works flawless.