Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/angular/angular
/ noSideEffects
Function
noSideEffects
packages/core/src/util/closure.ts:18–20 ·
view source on GitHub ↗
(fn: () => T)
Source
from the content-addressed store, hash-verified
16
* compiler.
17
*/
18
export
function
noSideEffects<T>(fn: () => T): T {
19
return
{toString: fn}.toString() as unknown as T;
20
}
Callers
9
setClassMetadata
Function · 0.90
ɵɵgetInheritedFactory
Function · 0.90
ɵɵdefineComponent
Function · 0.90
ɵɵdefineNgModule
Function · 0.90
ɵɵdefineDirective
Function · 0.90
ɵɵsetNgModuleScope
Function · 0.90
makeDecorator
Function · 0.90
makeParamDecorator
Function · 0.90
makePropDecorator
Function · 0.90
Calls
1
toString
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…