contents   index   previous   next



Object propertyIsEnumerable()

syntax:

object.propertyIsEnumerable(propertyName)

where:

property - name of the property about which to query.

 

return:

boolean - true if the current object has an enumerable property of the specified name, otherwise false.

 

description:

If the current object has no property of the specified name, then false is immediately returned. If the property has the DontEnum attribute set, then false is returned. Otherwise, true is returned.

 

example:

function Atest()

{

   this.name = "";

} // Test

 

Atest.prototype.city = "Fort Worth";

 

var t = new Atest();

 

// Fort Worth

Screen.writeln(t.city);

 

// true

Screen.writeln(t.propertyIsEnumerable("name"));

// true

Screen.writeln(t.propertyIsEnumerable("city"));

 


Object toLocaleString()