Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="application/javascript;version=1.8">
- function Constructor( options ) {
- var [ a, b ] = options;
- this.a = a;
- this.b = b;
- }
- var ctor = new Constructor( [ "Alpha", "Beta" ] );
- console.log(ctor);
- </script>
Add Comment
Please, Sign In to add comment