dist/jsmart.js
function (toPrint, indent, indentEnd) {
      if (!indent) {
        indent = '&nbsp;&nbsp;'
      }
      if (!indentEnd) {
        indentEnd = ''
      }
      var s = ''
      var name
      if (toPrint instanceof Object) {
        s = 'Object (\n'
        for (name in toPrint) {
          if (toPrint.hasOwnProperty(name)) {
            s += indent + indent + '[' + name + '] => ' + this.printR(toPrint[name], indent + '&nbsp;&nbsp;', indent + indent)
          }
        }
        s += indentEnd + ')\n'
        return s
      } else if (toPrint instanceof Array) {
        s = 'Array (\n'
        for (name in toPrint) {
          if (toPrint.hasOwnProperty(name)) {
            s += indent + indent + '[' + name + '] => ' + this.printR(toPrint[name], indent + '&nbsp;&nbsp;', indent + indent)
          }
        }
        s += indentEnd + ')\n'
        return s
      } else if (toPrint instanceof Boolean) {
        var bool = 'false'
        if (bool === true) {
          bool = 'true'
        }
        return bool + '\n'
      } else {
        return (toPrint + '\n')
      }
    }
function (toPrint, indent, indentEnd) {
      if (!indent) {
        indent = '&nbsp;&nbsp;'
      }
      if (!indentEnd) {
        indentEnd = ''
      }
      var s = ''
      var name
      if (toPrint instanceof Object) {
        s = 'Object (\n'
        for (name in toPrint) {
          if (toPrint.hasOwnProperty(name)) {
            s += indent + indent + '[' + name + '] => ' + this.printR(toPrint[name], indent + '&nbsp;&nbsp;', indent + indent)
          }
        }
        s += indentEnd + ')\n'
        return s
      } else if (toPrint instanceof Array) {
        s = 'Array (\n'
        for (name in toPrint) {
          if (toPrint.hasOwnProperty(name)) {
            s += indent + indent + '[' + name + '] => ' + this.printR(toPrint[name], indent + '&nbsp;&nbsp;', indent + indent)
          }
        }
        s += indentEnd + ')\n'
        return s
      } else if (toPrint instanceof Boolean) {
        var bool = 'false'
        if (bool === true) {
          bool = 'true'
        }
        return bool + '\n'
      } else {
        return (toPrint + '\n')
      }
    }
function ( toPrint , indent , indentEnd ) { if ( ! indent ) { indent = '&nbsp;&nbsp;' } if ( ! indentEnd ) { indentEnd = '' } var s = '' var name if ( toPrint instanceof Object ) { s = 'Object (\n' for ( name in toPrint ) { if ( toPrint . hasOwnProperty ( name ) ) { s += indent + indent + '[' + name + '] => ' + this . printR ( toPrint [ name ] , indent + '&nbsp;&nbsp;' , indent + indent ) } } s += indentEnd + ')\n' return s } else if ( toPrint instanceof Array ) { s = 'Array (\n' for ( name in toPrint ) { if ( toPrint . hasOwnProperty ( name ) ) { s += indent + indent + '[' + name + '] => ' + this . printR ( toPrint [ name ] , indent + '&nbsp;&nbsp;' , indent + indent ) } } s += indentEnd + ')\n' return s } else if ( toPrint instanceof Boolean ) { var bool = 'false' if ( bool === true ) { bool = 'true' } return bool + '\n' } else { return ( toPrint + '\n' ) } }
Print the object.
Print the object .