kentyler
04-24-2003, 08:32 AM
just checking. it seems Object.hasOwnProperty is not included, Object.propertyIsenumerable is not included, but Object.toLocaleString and Object.toString and Object.valueOf work.
Object.isPrototypeOf is not included, but .constructor works
<canvas debug="true">
<script>
<![CDATA[
var o = new Object();
Object.prototype.isPrototypeOf(o); // true: o is an object
Function.prototype.isPrototypeOf(o.toString) // true: toString is a function
Array.prototype.IsPrototypeOf([1,2,3]); // true: [1,2,3] is an array
debug.write( (o.constructor == Object) );
debug.write( (o.toString.constructor == Function) );
]]>
</script>
</canvas>
Object.isPrototypeOf is not included, but .constructor works
<canvas debug="true">
<script>
<![CDATA[
var o = new Object();
Object.prototype.isPrototypeOf(o); // true: o is an object
Function.prototype.isPrototypeOf(o.toString) // true: toString is a function
Array.prototype.IsPrototypeOf([1,2,3]); // true: [1,2,3] is an array
debug.write( (o.constructor == Object) );
debug.write( (o.toString.constructor == Function) );
]]>
</script>
</canvas>