Skip to content

Commit 9bf5ac5

Browse files
author
Tom Pearson
authored
expose indicatorLookup object (#9)
expose indicatorLookup object
1 parent 39150f5 commit 9bf5ac5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index-core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ function indexCore(indicatorsData = [], entitiesData = [], indexMax = 100) {
2424
return indicatorLookup[id];
2525
}
2626

27+
function getIndicatorLookup(){
28+
return indicatorLookup;
29+
}
30+
2731
function getIndexMean(indicatorID = 'value', normalised = true) {
2832
// get the mean index value for a given indicator id,
2933
// if the value of an indicator on an entiry is falsey
@@ -164,6 +168,7 @@ function indexCore(indicatorsData = [], entitiesData = [], indexMax = 100) {
164168
getIndexMean,
165169
getEntity,
166170
getIndicator,
171+
getIndicatorLookup,
167172
getEntities,
168173
};
169174
}

0 commit comments

Comments
 (0)