function map(set, iterator) {
        var results = [];
        for (var index = 0; index < set.length; index++) {
            results[index] = iterator(set[index], index, set);
        }
        return results;
    }
**map** Apply a mapping function to each item of a set
@param {Array|NodeList} set
@param {Function} iterator