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

Function stringify

lib/test/angular/1.7.0/angular.js:2149–2168  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2147}
2148
2149function stringify(value) {
2150 if (value == null) { // null || undefined
2151 return '';
2152 }
2153 switch (typeof value) {
2154 case 'string':
2155 break;
2156 case 'number':
2157 value = '' + value;
2158 break;
2159 default:
2160 if (hasCustomToString(value) && !isArray(value) && !isDate(value)) {
2161 value = value.toString();
2162 } else {
2163 value = toJson(value);
2164 }
2165 }
2166
2167 return value;
2168}
2169
2170var NODE_TYPE_ELEMENT = 1;
2171var NODE_TYPE_ATTRIBUTE = 2;

Callers 2

angular.jsFile · 0.70

Calls 4

hasCustomToStringFunction · 0.70
isArrayFunction · 0.70
isDateFunction · 0.70
toJsonFunction · 0.70

Tested by

no test coverage detected