MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / toString

Method toString

projects/JavaScript/proto/proto.js:822–843  ·  view source on GitHub ↗

* Convert struct to string * @this {!Order} * @returns {!string} Struct value string

()

Source from the content-addressed store, hash-verified

820 * @returns {!string} Struct value string
821 */
822 toString () {
823 let result = ''
824 result += 'Order('
825 result += 'id='
826 result += this.id.toString()
827 result += ',symbol='
828 if (this.symbol != null) {
829 result += '"' + this.symbol.toString() + '"'
830 } else {
831 result += 'null'
832 }
833 result += ',side='
834 result += this.side.toString()
835 result += ',type='
836 result += this.type.toString()
837 result += ',price='
838 result += this.price.toString()
839 result += ',volume='
840 result += this.volume.toString()
841 result += ')'
842 return result
843 }
844
845 /**
846 * Inspect struct

Callers 1

[util.inspect.custom]Method · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected