MCPcopy Create free account
hub / github.com/angular/angular / get

Method get

packages/common/http/src/params.ts:197–201  ·  view source on GitHub ↗

* Retrieves the first value for a parameter. * @param param The parameter name. * @returns The first value of the given parameter, * or `null` if the parameter is not present.

(param: string)

Source from the content-addressed store, hash-verified

195 * or `null` if the parameter is not present.
196 */
197 get(param: string): string | null {
198 this.init();
199 const res = this.map!.get(param);
200 return !!res ? res[0] : null;
201 }
202
203 /**
204 * Retrieves all values for a parameter.

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected