Native Javascript alternatives to jQuery methods
As the maintainer of cash [0] I wouldn&#x27;t recommend using these functions for almost anything, they aren&#x27;t really alternatives for jQuery as they provide a very different API, just to give one example the proposed alternative for `$.fn.css`:<p>- Doesn&#x27;t automatically camel-case the property name.<p>- Doesn&#x27;t automatically vendor-prefix properties if needed.<p>- Doesn&#x27;t support getting&#x2F;setting CSS variables.<p>- Doesn&#x27;t automatically add the `px` suffix to numeric values when appropriate.<p>- Doesn&#x27;t fail gracefully when dealing with non-element nodes (`node.nodeType !== 1`).<p>IMHO there are too many details that you now have to think about when using such &quot;native alternatives&quot; that&#x27;s not worth it. From my very unbiased opinion I think it makes more sense to just use cash, which only needs ~5kb when minified and gzipped, and can be even partially compiled to remove the stuff you don&#x27;t need.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;kenwheeler&#x2F;cash" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kenwheeler&#x2F;cash</a>