This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
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.
26 lines
735 B
26 lines
735 B
'use strict'; |
|
// 26.1.5 Reflect.enumerate(target) |
|
var $export = require('./$.export') |
|
, anObject = require('./$.an-object'); |
|
var Enumerate = function(iterated){ |
|
this._t = anObject(iterated); // target |
|
this._i = 0; // next index |
|
var keys = this._k = [] // keys |
|
, key; |
|
for(key in iterated)keys.push(key); |
|
}; |
|
require('./$.iter-create')(Enumerate, 'Object', function(){ |
|
var that = this |
|
, keys = that._k |
|
, key; |
|
do { |
|
if(that._i >= keys.length)return {value: undefined, done: true}; |
|
} while(!((key = keys[that._i++]) in that._t)); |
|
return {value: key, done: false}; |
|
}); |
|
|
|
$export($export.S, 'Reflect', { |
|
enumerate: function enumerate(target){ |
|
return new Enumerate(target); |
|
} |
|
}); |