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

Function stringify

test/angular/1.3/angular.js:10200–10215  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

10198 };
10199
10200 var stringify = function(value) {
10201 if (value == null) { // null || undefined
10202 return '';
10203 }
10204 switch (typeof value) {
10205 case 'string':
10206 break;
10207 case 'number':
10208 value = '' + value;
10209 break;
10210 default:
10211 value = toJson(value);
10212 }
10213
10214 return value;
10215 };
10216
10217 return extend(function interpolationFn(context) {
10218 var i = 0;

Callers 1

Calls 1

toJsonFunction · 0.70

Tested by

no test coverage detected