Docs
Everything You Need to Know
Utilities
API
The following utility methods are explained on this page.
- $.noop()
- $.uuid()
- $.delay()
- $.type()
- $.escapeHTML()
- $.capitalize()
- $.mixin()
- $.compare()
- $.chunk()
- $.flatten()
- $.throttle()
- $.debounce()
- $.once()
- $.before()
- $.after()
ChocolateChip-UI also provides the following array utilities:
- array1.difference(array2)
- array1.intersection(array2)
- array1.mixin(array2)
- Array.pluck(property)
- Array.unique()
The following utility methods are for dealing with color and explained on this page.
Color Methods
- $.ChuiColor(colorValue)
- $.calculateBrightness(colorObject)
- $.calculateContrast(colorValue)
- $.lightenColor(hexColorValue, percent)
- $.darkenColor(hexColorValue, percent)