Skip to content

Function_evisit_core_js_utils_defineROProperty

Taylor Everding edited this page Feb 9, 2021 · 2 revisions

function defineROProperty(obj, name, value[, get])

Parameters

  • obj
    • (Object) The object on which to define the property.
  • name
    • (String) The name of the property to be defined.
  • value
    • (*) The value associated with the property. Ignored if get or set is specified.
  • get [optional]
    • (Function) A function which serves as a getter for the property.

Return value

  • (undefined) always returns undefined

Description

Defines a readonly, non-enumerable property on obj.

See Also


Clone this wiki locally