Adding support for Indicators and Extractors
This commit is contained in:
1 parent
f942581f58
commit
a8ac7385d6
12 files changed
+325
-356
No files matched your search
@@ -72,3 +72,12 @@ export function slugify (string) {
|
||||
.replace(/^-+/, '') // Trim - from start of text
|
||||
.replace(/-+$/, '') // Trim - from end of text
|
||||
}
|
||||
|
||||
export function getIndicatorYears () {
|
||||
const localDate = new Date()
|
||||
let availableYears = []
|
||||
for (var i = 2015; i <= localDate.getUTCFullYear(); i++) {
|
||||
availableYears[i-2015] = i
|
||||
}
|
||||
return availableYears
|
||||
}
|
||||
Reference in new issue
Block a user