Back
propertyIsPresent()
Returns true
if the specified property exists on the model and is not a blank string.
// Get an object, set a value and then see if the property exists
employee = model("employee").new();
employee.firstName = "dude";
return employee.propertyIsPresent("firstName"); // Returns true
employee.firstName = "">
return employee.propertyIsPresent("firstName"); // Returns false
Copied!