API Reference

printValuefunction

Converts a value to readable text and logs it to the console.

When to use

Uses PrettyPrinter internally so complex objects, arrays, and nested structures are printed in a readable format.

Quick facts
Kind
function
Module
error-log
Package
@rs-x/core

Declaration

export function printValue(value: unknown): void {

Import

import { printValue } from '@rs-x/core';

Example

import { printValue } from '@rs-x/core';

printValue(/* arguments */);

Parameters

valueunknown

Value to format and print.

Return type

void