persona-community-5/.pnpm-store/v3/files/bf/295d1ad29c014419922e2b79858b7f447d7a2d5d8517870601ff8623642916061ad14e5b2f4740dac514bf386351a17926ff28632f61cf95fba0e898fef6dd
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

34 lines
454 B
Plaintext

'use strict'
function reusify (Constructor) {
var head = new Constructor()
var tail = head
function get () {
var current = head
if (current.next) {
head = current.next
} else {
head = new Constructor()
tail = head
}
current.next = null
return current
}
function release (obj) {
tail.next = obj
tail = obj
}
return {
get: get,
release: release
}
}
module.exports = reusify