I am trying to rewrite the structure of my collections like below
for (var [i, c] in collections) {
collections[i].cards.item = c.cards.item[0]
}
I can't seem to make it work.
Is there a way to collect all my "data-param-<something>" from an element? Ex: My element has <div data-param-name="a" data-param-age="67" data-param-place="xyz"></div>
I have a simple UITableView instance with section header set to a custom view, I am trying to change this header view to a different view whenever the header becomes sticky.
Is there a way to collect all my "data-param-<something>" from an element? Ex: My element has <div data-param-name="a" data-param-age="67" data-param-place="xyz"></div>
I want to construct an array containing array of strings, something like, ["A" => ["aa", "ab"], "B" => ["ba","bb"], ... ] and I want to know how to push to say "A"'s array