MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / getFirstProperty

Method getFirstProperty

tests/__mocks__/ical.ts:163–170  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

161 }
162
163 getFirstProperty(name: string): any | null {
164 const multi = this.multiProperties.get(name);
165 if (multi && multi.length > 0) return multi[0];
166 if (this.properties.has(name)) {
167 return new ICAL.Property(name, this.properties.get(name), {});
168 }
169 return null;
170 }
171
172 addPropertyWithValue(name: string, value: any): void {
173 this.properties.set(name, value);

Callers 1

rawTzidOfMethod · 0.80

Calls 2

hasMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected