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

Method findProperty

lib/thing.ts:330–336  ·  view source on GitHub ↗

* Find a property by name. * * @param {String} propertyName Name of the property to find * * @returns {(Object|null)} Property if found, else null

(propertyName: string)

Source from the content-addressed store, hash-verified

328 * @returns {(Object|null)} Property if found, else null
329 */
330 findProperty(propertyName: string): Property|null {
331 if (this.properties.hasOwnProperty(propertyName)) {
332 return this.properties[propertyName];
333 }
334
335 return null;
336 }
337
338 /**
339 * Get a property's value.

Callers 2

getPropertyMethod · 0.95
setPropertyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected