Skip to content

Function_evisit_core_js_utils_defineRWProperty

Taylor Everding edited this page Feb 9, 2021 · 1 revision

function defineRWProperty(obj, name, value[, get[, set]])

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.
  • set [optional]
    • (Function) A function which serves as a setter for the property.

Return value

  • (undefined) always returns undefined

Description

Defines a configurable, non-enumerable property on obj.

See Also


Clone this wiki locally