copy paste from rwaldron/idiomatic.js

Hatchet time.