/**
 * @since Last modified: 2024-01-24 12:11:58
 * @function getOptsFromMap
 * @description Get default parameters from attr and prop maps.
 * @param {array} map -  Map array.
 * @return {object} - Returns the original parameters.
 * @see {@link https://codepen.io/axui/pen/abMyrmZ|demo @ codepen}
 * @example
 * ax.getOptsFromMap([{attr:'name',prop:'name',value:''},...]);
 * <!--return {name:'',age:''...}-->
 */
'use strict';
const getOptsFromMap = (map) => {
    let options = {};
    map.forEach((k) => {
        options[k.prop] = k.value;
    });
    return options;
};
export default getOptsFromMap;
