MCPcopy Create free account
hub / github.com/cryptii/cryptii / extract

Method extract

src/Field.js:382–385  ·  view source on GitHub ↗

* Extracts value serialized by Field.serializeValue and applies * it on the field. Calls Field.extractValue internally. * @param {mixed} data Serialized data * @return {Field} Fluent interface

(data)

Source from the content-addressed store, hash-verified

380 * @return {Field} Fluent interface
381 */
382 extract (data) {
383 this.setValue(this.extractValue(data))
384 return this
385 }
386
387 /**
388 * Extracts a value serialized by {@link Field.serializeValue} and returns it.

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.95
extractValueMethod · 0.95

Tested by

no test coverage detected