A helper utility for deck.js