# Strict "is"

**URL:** https://forum.kirupa.com/t/strict-is/295488
**Category:** Uncategorized
**Created:** [August 31, 2009, 10:31am UTC](https://forum.kirupa.com/t/strict-is/295488 "2009-08-31T10:31:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![omnivibe](https://avatars.discourse-cdn.com/v4/letter/o/dbc845/32.png) [@omnivibe](https://forum.kirupa.com/u/omnivibe)
#### Post date: [August 31, 2009, 10:31am UTC](https://forum.kirupa.com/t/strict-is/295488/1 "2009-08-31T10:31:09Z")

</div>

Is there a way to perform a strict “is”?

consider:

```auto

var str:String = 'test';
var obj:Object = {foo: 'bar'};

testIfObject(str); // I want this to trace false, but it sadly shows true
testIfObject(obj); // I want this to trace true, and it does

function testIfObject(thing:*) {

if(thing is Object) {
trace(true);
} else {
trace(false);
}
}

```
