MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / emitMap

Method emitMap

ui/plugins/ui/jasmine/jasmine.js:6780–6803  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

6778 }
6779
6780 emitMap(map) {
6781 if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) {
6782 this.append("Map")
6783 return
6784 }
6785 this.append("Map( ")
6786 const size = Math.min(map.size, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH)
6787 let i = 0
6788 map.forEach(function(value, key) {
6789 if (i >= size) {
6790 return
6791 }
6792 if (i > 0) {
6793 this.append(", ")
6794 }
6795 this.format([key, value])
6796
6797 i++
6798 }, this)
6799 if (map.size > size) {
6800 this.append(", ...")
6801 }
6802 this.append(" )")
6803 }
6804
6805 emitObject(obj) {
6806 const ctor = obj.constructor

Callers 1

formatMethod · 0.95

Calls 2

appendMethod · 0.95
formatMethod · 0.95

Tested by

no test coverage detected