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.
 

566 B

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.