added memory data store

This commit is contained in:
Kevin Jahns
2015-06-28 01:42:17 +02:00
parent 7ec409e09f
commit 75793d0ced
3 changed files with 55 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
// returns a rendom element of o
// returns a random element of o
// works on Object, and Array
function getRandom (o) {
if (o instanceof Array) {