MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / unwrap

Method unwrap

packages/core/data/observable/index.ts:72–74  ·  view source on GitHub ↗

* Gets the real value of previously wrappedValue. * @param value - Value that should be unwraped. If there is no wrappedValue property of the value object then value will be returned.

(value: any)

Source from the content-addressed store, hash-verified

70 * @param value - Value that should be unwraped. If there is no wrappedValue property of the value object then value will be returned.
71 */
72 public static unwrap(value: any): any {
73 return value instanceof WrappedValue ? value.wrapped : value;
74 }
75
76 /**
77 * Returns an instance of WrappedValue. The actual instance is get from a WrappedValues pool.

Callers 5

setMethod · 0.80
setMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
setFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected