thankful-gpu-70135
07/27/2023, 5:02 PMmillions-activity-52391
07/27/2023, 5:02 PMmillions-activity-52391
07/28/2023, 8:51 AMthankful-gpu-70135
07/30/2023, 6:53 AMthankful-gpu-70135
07/30/2023, 6:54 AMmillions-activity-52391
07/31/2023, 12:35 PMIf the functionality you are looking for is available within the standard libraries, you can use them"RudderStack's libraries provide standard features such as hashing, encryption, parsing etc. However, another workaround that you can use is to use the vanilla code of Lodash and add it as a library. Then you can fetch the methods from this library and use it.
Transformations would be so much more powerful if Rudderstack supported popular libraries like lodash as it's methods are often so good for working on objects and arrays.I agree with this but the way RudderStack is currently setup it does not support importing these external libraries.
millions-activity-52391
07/31/2023, 12:51 PMexport function strictLastIndexOf(array, value, fromIndex)thankful-gpu-70135
07/31/2023, 7:24 PMmillions-activity-52391
08/01/2023, 6:13 AMthankful-gpu-70135
01/09/2024, 10:45 PMlet modifiedEvent = JSON.parse(JSON.stringify(event));
This doesn't work quite well in all cases for keys, for example if undefined. Lodash has built in functions for deep copying which handles this seamlessly.millions-activity-52391
01/10/2024, 10:33 AM