JSFiddle - React, Tailwind, and code Playground

HTML

<p>Test</p>

CSS

p {
    color: red;
    background: blue;
    padding: 5px;
}

JavaScript

(function($) {
    $.fn.computedCSS = function() {
        var elem = $(this)[0];
        var styles = window.getComputedStyle(elem);
        var computed = {};  
        for (key in styles) {
            if (!key.match(/^\d+$/) && typeof styles[key] !== 'function') {
                computed[key] = styles[key];   
            }
        }
        return computed;
    };
})(jQuery);

console.log($('p').computedCSS());