MCPcopy Create free account
hub / github.com/apache/struts-examples / stringify

Function stringify

rest-angular/src/main/webapp/js/lib/angular/angular.js:11617–11632  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

11615 }
11616
11617 function stringify(value) {
11618 if (value == null) { // null || undefined
11619 return '';
11620 }
11621 switch (typeof value) {
11622 case 'string':
11623 break;
11624 case 'number':
11625 value = '' + value;
11626 break;
11627 default:
11628 value = toJson(value);
11629 }
11630
11631 return value;
11632 }
11633
11634 //TODO: this is the same as the constantWatchDelegate in parse.js
11635 function constantWatchDelegate(scope, listener, objectEquality, constantInterp) {

Callers 1

Calls 1

toJsonFunction · 0.70

Tested by

no test coverage detected