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

Function jsonFilter

OpenReservation/wwwroot/Scripts/angular.js:20554–20561  ·  view source on GitHub ↗

* @ngdoc filter * @name json * @kind function * * @description * Allows you to convert a JavaScript object into JSON string. * * This filter is mostly useful for debugging. When using the double curly {{value}} notation * the binding is automatically con

()

Source from the content-addressed store, hash-verified

20552 *
20553 */
20554 function jsonFilter() {
20555 return function (object, spacing) {
20556 if (isUndefined(spacing)) {
20557 spacing = 2;
20558 }
20559 return toJson(object, spacing);
20560 };
20561 }
20562
20563 /**
20564 * @ngdoc filter

Callers

nothing calls this directly

Calls 2

isUndefinedFunction · 0.85
toJsonFunction · 0.85

Tested by

no test coverage detected