MCPcopy Create free account
hub / github.com/json-editor/json-editor / getMax

Method getMax

src/editors/array.js:316–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314 }
315
316 getMax () {
317 if ((Array.isArray(this.schema.items)) && this.schema.additionalItems === false) {
318 return Math.min(this.schema.items.length, this.schema.maxItems || Infinity)
319 }
320 return this.schema.maxItems || Infinity
321 }
322
323 refreshTabs (refreshHeaders) {
324 this.rows.forEach(row => {

Callers 2

ensureArraySizeMethod · 0.95
setupButtonsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected