Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Foo(v) {
- if (false === this instanceof Foo) {
- return new Foo(v);
- }
- this.value = v;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement