MCPcopy Index your code
hub / github.com/angular-ui/ui-router / stringify

Function stringify

test/angular/1.5/angular.js:12446–12461  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

12444 }
12445
12446 function stringify(value) {
12447 if (value == null) { // null || undefined
12448 return '';
12449 }
12450 switch (typeof value) {
12451 case 'string':
12452 break;
12453 case 'number':
12454 value = '' + value;
12455 break;
12456 default:
12457 value = toJson(value);
12458 }
12459
12460 return value;
12461 }
12462
12463 // TODO: this is the same as the constantWatchDelegate in parse.js
12464 function constantWatchDelegate(scope, listener, objectEquality, constantInterp) {

Callers 1

Calls 1

toJsonFunction · 0.70

Tested by

no test coverage detected