MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / stringify

Function stringify

OpenReservation/wwwroot/Scripts/angular.js:11931–11946  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

11929 }
11930
11931 function stringify(value) {
11932 if (value == null) { // null || undefined
11933 return '';
11934 }
11935 switch (typeof value) {
11936 case 'string':
11937 break;
11938 case 'number':
11939 value = '' + value;
11940 break;
11941 default:
11942 value = toJson(value);
11943 }
11944
11945 return value;
11946 }
11947
11948 //TODO: this is the same as the constantWatchDelegate in parse.js
11949 function constantWatchDelegate(scope, listener, objectEquality, constantInterp) {

Callers 1

Calls 1

toJsonFunction · 0.85

Tested by

no test coverage detected