MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / stringify

Function stringify

code/songhop/www/lib/angular/angular.js:10089–10104  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

10087 };
10088
10089 var stringify = function(value) {
10090 if (value == null) { // null || undefined
10091 return '';
10092 }
10093 switch (typeof value) {
10094 case 'string':
10095 break;
10096 case 'number':
10097 value = '' + value;
10098 break;
10099 default:
10100 value = toJson(value);
10101 }
10102
10103 return value;
10104 };
10105
10106 return extend(function interpolationFn(context) {
10107 var i = 0;

Callers 1

Calls 1

toJsonFunction · 0.70

Tested by

no test coverage detected