UNPKG

534 BJavaScriptView Raw
1/**
2 * Get the master list and return an array of fully qualified icon paths
3 *
4 * @param {Array} List
5 * @return {Array}
6 */
7function normalizeIconList(list) {
8 var normalizedList = []
9
10 for (set in list) {
11 var categories = Object.getOwnPropertyNames(list[set])
12 var set = list[set]
13
14 categories.forEach(function (category) {
15 var catSet = set[category]
16
17 return catSet.forEach(function (set) {
18 normalizedList.push(set)
19 })
20 })
21 }
22
23 return normalizedList
24}
25
26module.exports = normalizeIconList