jorgebucaran / classcat

Build a class attribute string quickly
MIT License
905 stars 22 forks source link

Cache classes.length #6

Closed drdla closed 6 years ago

drdla commented 6 years ago

Makes loop faster. The effect of course won't be huge with small arrays, but if you care about performance than you might as well do it.

codecov-io commented 6 years ago

Codecov Report

Merging #6 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #6   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          13     13           
  Branches        6      6           
=====================================
  Hits           13     13
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0197a99...81442d8. Read the comment docs.