<p dir="ltr">Not exactly the same but the Closure Compiler has a "runtime type check" mode that inject type checks.  If you write jsdoc type annotations already  this can be an low resistance path but its usefulness depends on the accuracy of those annotations.</p>

<div class="gmail_quote">On Aug 21, 2014 6:54 AM, "Curtis Steckel" <<a href="mailto:steckel@squareup.com">steckel@squareup.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
These are all great examples and resources<span></span>. Thanks everyone.<div><br>On Thursday, August 21, 2014, Charles Pick <<a href="mailto:charles@codemix.com" target="_blank">charles@codemix.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><span style="color:rgb(34,34,34);font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:arial,sans-serif">Just to throw another example out there, here's a Design by Contract library which squeezes itself within existing ES syntax - </span><a href="https://github.com/codemix/contractual" style="color:rgb(17,85,204);font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-family:arial,sans-serif" target="_blank">https://github.com/codemix/contractual</a></div>


</blockquote></div>
<br>_______________________________________________<br>
es-discuss mailing list<br>
<a href="mailto:es-discuss@mozilla.org">es-discuss@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/es-discuss" target="_blank">https://mail.mozilla.org/listinfo/es-discuss</a><br>
<br></blockquote></div>