Refutable destructuring

Domenic Denicola domenic at
Fri Aug 16 14:08:39 PDT 2013

Actually, I think it'd be fantastic to have an easy way to communicate required parameters in an options object. It's a fairly common pattern; for example in the S3 library knox that I maintain we require bucket, key, and secret, but everything else has defaults.

More information about the es-discuss mailing list