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

Function stringify

test/angular/1.4/angular.js:11215–11230  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

11213 }
11214
11215 function stringify(value) {
11216 if (value == null) { // null || undefined
11217 return '';
11218 }
11219 switch (typeof value) {
11220 case 'string':
11221 break;
11222 case 'number':
11223 value = '' + value;
11224 break;
11225 default:
11226 value = toJson(value);
11227 }
11228
11229 return value;
11230 }
11231
11232 /**
11233 * @ngdoc service

Callers 1

Calls 1

toJsonFunction · 0.70

Tested by

no test coverage detected