Projects a RespValue onto plain JavaScript.
Bulk and verbatim strings are UTF-8 decoded, arrays / sets / pushes become arrays, and maps become objects keyed by the stringified key. Errors project to their message; check kind === 'error' (or use RedisReply.error) when that matters.
kind === 'error'
The value to project.
The plain-JavaScript view.
1.0.6
Projects a RespValue onto plain JavaScript.
Bulk and verbatim strings are UTF-8 decoded, arrays / sets / pushes become arrays, and maps become objects keyed by the stringified key. Errors project to their message; check
kind === 'error'(or use RedisReply.error) when that matters.