MCPcopy Create free account
hub / github.com/course-dasheng/fe-algorithm / size

Method size

interview/heap.js:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 this.compare = compare?compare:(a,b)=>a>b
7 }
8 get size(){
9 return this.arr.length-1
10 }
11 push(item){
12 // 新增元素
13 this.arr.push(item)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected