How can i check if the instance of that Object using call or apply method
<pre><code>function User(first, last){
  if ( !(this instanceof arguments.callee) )
    return new User(first, last);

  this.name = first + " " + last;
}

var name = "Resig";
var user = User("John", name);

assert( user, "This was defined correctly, even if it was by mistake." );
assert( name == "Resig", "The right name was maintained." );
</code></pre>

<p>To check whether the instance is created is using new operator, we do these in the constructor. </p>

<pre><code>if ( !(this instanceof arguments.callee) )
</code></pre>

<p>OR</p>

<pre><code>if ( !(this instanceof ___) )
</code></pre>

<p>OR</p>

<pre><code>if ( !(this instanceof User) )
</code></pre>

<p>I have read in this forum that arguments.callee depreciated and we must use either apply or call method instead. </p>

<p>How can i check if the instance of that Object using call or apply method?</p>
