SAPO::Utility.Dumper->printDump

This method will print passed variable structure.

This is static method.

Syntax

SAPO.Utility.Dumper.printDump(param) 
or
SAPO.Utility.Dumper.printDump(param, element_id_target_output) 

Compatibility

All browsersYes

Depends

Input Parameters

  • (string|object|boolean) param : Input variable
  • (string|element) target : Optional element id target for output

Sample

 http://js.sapo.pt/SAPO/Utility/Dumper/sample/

Example

    var myVar = {
        string1: 'valueString1', 
        string2: 'valueString2', 
        bool1: true,
        bool2: false,
        array1: ['arrayValue1', 'arrayValue2', 'arrayValue3'],
        null1: null
    }
<div id="output"></div>
    SAPO.Utility.Dumper.printDump(myVar, 'output');

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found