Simple but useful util methods for clamjs