DS
Size: a a a
DS
АБ
DT
АБ
OR
АБ
И
DS
И
const get
NextID = (() = > {
let count = 0
return () => count++
})()
DS
const get
NextID = (() = > {
let count = 0
return () => count++
})()
function createSomething() {
let count = 0
return () => {
count += 1
...
}
}
И
function createSomething() {
let count = 0
return () => {
count += 1
...
}
}
DS
EM
DS
const get
NextID = (() = > {
let count = 0
return () => count++
})()
И
И
DS
ES
OR