render power data in table format

This commit is contained in:
Eric Hulburd
2016-02-10 16:11:56 -06:00
parent b14c266de3
commit 9996dfc54e
26 changed files with 424 additions and 141 deletions

View File

@@ -1,15 +1,13 @@
class ArrayUtil {
static diff(a1, a2){
a1.filter((a1n)=>{ return a2.indexOf(a1n) < 0; });
return a1.filter((a1n)=>{ return a2.indexOf(a1n) < 0; });
}
static selectMap(a, fnSelect, fnMap){
var map = [];
for (var elem of a){
if (fnSelect(elem)){
map.push(fnMap(elem));
}
if (fnSelect(elem)) map.push(fnMap(elem));
}
return map;
}