MCPcopy
hub / github.com/angular/angular / pop

Method pop

packages/service-worker/worker/src/data.ts:100–111  ·  view source on GitHub ↗

* Remove the tail.

()

Source from the content-addressed store, hash-verified

98 * Remove the tail.
99 */
100 pop(): string | null {
101 // If there is no tail, return null.
102 if (this.state.tail === null) {
103 return null;
104 }
105
106 const url = this.state.tail;
107 this.remove(url);
108
109 // This URL has been successfully evicted.
110 return url;
111 }
112
113 remove(url: string): boolean {
114 const node = this.state.map[url];

Callers 15

parseEventNameMethod · 0.80
cacheResponseMethod · 0.80
globToRegexFunction · 0.80
scanCloseBraceMethod · 0.80
removeEmptyLastLineMethod · 0.80
_convertToTextMethod · 0.80

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected