MCPcopy Index your code
hub / github.com/angular/angular / get

Method get

packages/common/http/src/params.ts:211–215  ·  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

209 * or `null` if the parameter is not present.
210 */
211 get(param: string): string | null {
212 this.init();
213 const res = this.map!.get(param);
214 return !!res ? res[0] : null;
215 }
216
217 /**
218 * 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