plugins/md.js
function generateNestedMap(objArray) {
    let mainMap = new Map();
    objArray.forEach((obj) => {
        let params = obj.name.split('.');
        let i = 0;
        let k = mainMap;

        while (k.has(params[i])) {
            k = k.get(params[i]);
            i++;
        }
        let kk = new Map();
        kk.set('value', obj.description.replace(/(\r\n|\n|\r)/gm, ' '));
        kk.set('type', obj.type.names.join('\n\n').replace(/\./gi, ''));
        k.set(params[i], kk);
    });
    return mainMap;
}
function generateNestedMap(objArray) {
    let mainMap = new Map();
    objArray.forEach((obj) => {
        let params = obj.name.split('.');
        let i = 0;
        let k = mainMap;

        while (k.has(params[i])) {
            k = k.get(params[i]);
            i++;
        }
        let kk = new Map();
        kk.set('value', obj.description.replace(/(\r\n|\n|\r)/gm, ' '));
        kk.set('type', obj.type.names.join('\n\n').replace(/\./gi, ''));
        k.set(params[i], kk);
    });
    return mainMap;
}
function generateNestedMap ( objArray ) { let mainMap = new Map ( ) ; objArray . forEach ( ( obj ) => { let params = obj . name . split ( '.' ) ; let i = 0 ; let k = mainMap ; while ( k . has ( params [ i ] ) ) { k = k . get ( params [ i ] ) ; i ++ ; } let kk = new Map ( ) ; kk . set ( 'value' , obj . description . replace ( / (\r\n|\n|\r) / gm , ' ' ) ) ; kk . set ( 'type' , obj . type . names . join ( '\n\n' ) . replace ( / \. / gi , '' ) ) ; k . set ( params [ i ] , kk ) ; } ) ; return mainMap ; }
This method generates a nested hashmap for the parameters table
@param {Object} objArray the Array structure containing the parameters
This method generates a nested hashmap for the parameters table