cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
33 stars 14 forks source link

New op: ArraySetObjectValues #759

Open kikohs opened 1 month ago

kikohs commented 1 month ago

https://cables.gl/op/Ops.Team.DecodeOpen_hDmNr9.ArraySetObjectValues

Updates each object in an array with new data from a corresponding array, based on a specified key

This op takes an array of objects and updates each object's specified key with new data from a corresponding array of values. It supports deep updates using dot notation to specify the path to nested object properties. Error handling ensures keys are valid and do not reference non-existent paths or malformed strings. Users can choose to modify the original array directly or work on a copy of it. If an error is encountered, the operation returns null and logs detailed error information.

steam0r commented 1 month ago

we cloned this to a core op: https://dev.cables.gl/op/Ops.Json.ArraySetObjectValues

thank you!