It's been a while since I contributed the addition of the Push function to some of the Data Expressions. I've been using versions of these expressions extensively since, and I've thought better of the creation of intermediate vars feat and features.
Instead, why not just create the output dict first (like before), but use the function directly with the dict?
It's been a while since I contributed the addition of the
Push
function to some of the Data Expressions. I've been using versions of these expressions extensively since, and I've thought better of the creation of intermediate varsfeat
andfeatures
.Instead, why not just create the output dict first (like before), but use the function directly with the dict?
Push(outDict['features'], {attributes:{someatt: 'someval'}})
I also did some minor formatting tweaks and cleaned up some unnecessary whitespace.