Home Reference Source
import {ObjectHelper} from 'arva-js/utils/ObjectHelper.js'
public class | source

ObjectHelper

Static Method Summary

Static Public Methods
public static

addGetSetPropertyWithShadow(object: *, propName: *, prop: *, enumerable: boolean, writable: boolean, setCallback: undefined)

public static

addHiddenPropertyToObject(object: *, propName: *, prop: *, writable: boolean, useAccessors: boolean): *

public static

addPropertyToObject(object: *, propName: *, prop: *, enumerable: boolean, writable: boolean, setCallback: undefined, useAccessors: boolean)

public static

bindAllMethods(object: *, bindTarget: *)

public static

buildGetSetProperty(object: *, propName: *, enumerable: boolean, writable: boolean, setCallback: undefined): *

public static

buildPropertyShadow(object: *, propName: *, prop: *)

public static

getEnumerableProperties(object: *): *

public static

getMethodDescriptors(object: *): *

public static

getPrototypeEnumerableProperties(rootObject: *, prototype: *): *

public static
public static
public static
public static

hidePropertyFromObject(object: *, propName: *)

Static Public Methods

public static addGetSetPropertyWithShadow(object: *, propName: *, prop: *, enumerable: boolean, writable: boolean, setCallback: undefined) source

Params:

NameTypeAttributeDescription
object *
propName *
prop *
enumerable boolean
  • optional
  • default: true
writable boolean
  • optional
  • default: true
setCallback undefined
  • optional
  • default: undefined

public static addHiddenPropertyToObject(object: *, propName: *, prop: *, writable: boolean, useAccessors: boolean): * source

Params:

NameTypeAttributeDescription
object *
propName *
prop *
writable boolean
  • optional
  • default: true
useAccessors boolean
  • optional
  • default: true

Return:

*

public static addPropertyToObject(object: *, propName: *, prop: *, enumerable: boolean, writable: boolean, setCallback: undefined, useAccessors: boolean) source

Params:

NameTypeAttributeDescription
object *
propName *
prop *
enumerable boolean
  • optional
  • default: true
writable boolean
  • optional
  • default: true
setCallback undefined
  • optional
  • default: undefined
useAccessors boolean
  • optional
  • default: true

public static bindAllMethods(object: *, bindTarget: *) source

Params:

NameTypeAttributeDescription
object *
bindTarget *

public static buildGetSetProperty(object: *, propName: *, enumerable: boolean, writable: boolean, setCallback: undefined): * source

Params:

NameTypeAttributeDescription
object *
propName *
enumerable boolean
  • optional
  • default: true
writable boolean
  • optional
  • default: true
setCallback undefined
  • optional
  • default: undefined

Return:

*

public static buildPropertyShadow(object: *, propName: *, prop: *) source

Params:

NameTypeAttributeDescription
object *
propName *
prop *

public static getEnumerableProperties(object: *): * source

Params:

NameTypeAttributeDescription
object *

Return:

*

public static getMethodDescriptors(object: *): * source

Params:

NameTypeAttributeDescription
object *

Return:

*

public static getPrototypeEnumerableProperties(rootObject: *, prototype: *): * source

Params:

NameTypeAttributeDescription
rootObject *
prototype *

Return:

*

public static hideAllPropertiesFromObject(object: *) source

Params:

NameTypeAttributeDescription
object *

public static hideMethodsAndPrivatePropertiesFromObject(object: *) source

Params:

NameTypeAttributeDescription
object *

public static hideMethodsFromObject(object: *) source

Params:

NameTypeAttributeDescription
object *

public static hidePropertyFromObject(object: *, propName: *) source

Params:

NameTypeAttributeDescription
object *
propName *