Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Orion Stark
a7e10d6796
|
7 years ago | |
---|---|---|
.. | ||
.npmignore | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
index.js | 7 years ago | |
package.json | 7 years ago | |
test.js | 7 years ago |
README.md
yapool
Yet Another object pool in JavaScript
Because yallist is sometimes too featureful, this is a very dead-simple linked-list pool thingie in JavaScript that lets you add and remove objects in a set.
Not suitable for very long lists, because all searches are O(n)
, but
for small n
, it has very low complexity.
API
p = new Pool()
Constructor takes no arguments
p.add(someObject)
put an object in the pool
p.length
return the number of things in the pool.
p.remove(someObject)
remove that object from the pool.