Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Object.zHasField

zHasField($fieldName) -> boolean

Description

Return true or false if the object has the given field.

class MyClass {

    fields {
        id: 123
    }
}

$object = MyClass()

$object.zHasField('id')       //= true
$object.zHasField('missing')  //= false

See Also