/**
 * @since Last modified: 2023-12-13 19:18:53
 * @constant expandParams
 * @description Expand the parameters of "true" into a real default parameters.
 * @param {object} params  - default parameters.
 * @param {object} host  - The host options.
 * @returns {object} - The host options expanded.
 * @see {@link https://codepen.io/axui/pen/RwvmpJG|demo @ codepen}
 * @example
 * ax.expandParams({a:{},b:{}},options);
 * <!--options.a=true,options.b=true -> options.a={},options.b={}-->
 */
'use strict';
const expandParams = (params:object,host:any)=>{
    for(let k in params){
        if(params.hasOwnProperty(k) && host[k] === true){
            host[k] = params[k];
        }
    }
    return host;
}
export default expandParams;
