/var/www/cobraambalaj/node_modules/reusify
NameSizeModeActions
benchmarks/-0755rm
.coveralls.yml460644editdlrm
.travis.yml2840644editdlrm
LICENSE10820644editdlrm
package.json17930644editdlrm
README.md36330644editdlrm
reusify.js4540644editdlrm
test.js14400644editdlrm
Edit: /var/www/cobraambalaj/node_modules/reusify/reusify.js (454B)
'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