dist/lib/utility_functions/array.js
function mapToObject(input, mapFunc) {
    const obj = {};
    for (const element of input) {
        obj[element] = mapFunc(element);
    }
    return obj;
}
function mapToObject(input, mapFunc) {
    const obj = {};
    for (const element of input) {
        obj[element] = mapFunc(element);
    }
    return obj;
}
function mapToObject ( input , mapFunc ) { const obj = { } ; for ( const element of input ) { obj [ element ] = mapFunc ( element ) ; } return obj ; }
Gets an input array and maps it to an object where
the property keys correspond to the array elements
and the property values are defiend by mapFunc.

@param input
@param mapFunc
Gets an input array and maps it to an object where the property keys correspond to the array elements and the property values are defiend by mapFunc .