 console.log(&quot;URL is not absolute&quot;);
}
</code></pre>
<h2 id="objectdefinednotnull">objectDefinedNotNull<a class="headerlink" href="#objectdefinednotnull" title="Permanent link">&para;</a></h2>
<p>Determines if an object is defined and not null.</p>
<pre><code class="language-TypeScript">import { objectDefinedNotNull } from &quot;@pnp/core&quot;;

const obj = {
    prop: 1
};

if (objectDefinedNotNull(obj)){
    console.log(&quot;Not null&quot;);
} else {
    console.log(&quot;Null&quot;);
}
</code