My copypasta from Doug Crockford, fixed ;)