/**
 * @since Last modified: 2024/04/20 14:44:58
 * @function style
 * @description obtaining styles collection (getComputeDStyle method) with calculation.
 * @param {getEl} elem  - Node of style.
 * @param {getEl} [pseudo]  - A string specifying the pseudo-element to match.
 * @returns {object}  - Return styles collection.
 * @see {@link https://codepen.io/axui/pen/XWOOwLZ|demo @ codepen}
 * @example
 * ax.style('#demo');
 * <!--return a CSSStyleDeclaration object-->
 */
'use strict';
import getEl from './getEl';
const style = (elem, pseudo) => {
    let el = getEl(elem), result = el ? document.defaultView.getComputedStyle(el, pseudo) : {};
    return result;
};
export default style;
