MCPcopy Index your code
hub / github.com/WebThingsIO/webthing-node / removeProperty

Method removeProperty

lib/thing.ts:317–321  ·  view source on GitHub ↗

* Remove a property from this thing. * * @param {Object} property Property to remove

(property: Property)

Source from the content-addressed store, hash-verified

315 * @param {Object} property Property to remove
316 */
317 removeProperty(property: Property): void {
318 if (this.properties.hasOwnProperty(property.getName())) {
319 delete this.properties[property.getName()];
320 }
321 }
322
323 /**
324 * Find a property by name.

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected