Closed dalisoft closed 3 years ago
Yes, you can use a custom serializer for that
attr('string', value => value || 'Lorem Ipsum');
Thanks @lucagez
Also, i see slow-json-stringify bit slow for Objects, is there any way optimize it?
@dalisoft I opened a new issue discussing possible performance optimizations here https://github.com/lucagez/slow-json-stringify/issues/28#issue-886290943. Feel free to leave comments/suggestions there.
Hi @lucagez
Is there any way to set default value if value was not provided? Like
attr('string', 'Lorem ipsum')
?