Hello everyone, and it’s ya boy back with another bite-sized extension! Today, I made a simple extension to “stringify” any (default) datatype neatly. Numbers, booleans, arrays, objects, anything!
Blocks (again, just one)
function stringify(value: any): string;
Pretty simple: drag the value you wish to convert, and get a string back! This was originally an internal extension meant for me but I decided to share it for good measure.
The conversion is also recursive, which means arrays inside of arrays, objects inside of objects and etc. will be converted.
That’s all for this extension, it’s short but sweet. The next one is going to be bigger. So, stay tuned for that. Peace