MCPcopy
hub / github.com/mgonto/restangular / sortedKeys

Function sortedKeys

src/restangular.js:751–759  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

749 // serialization of parameters would need to be identical
750 // to the one done by angular for cache keys to match.
751 function sortedKeys(obj) {
752 var keys = [];
753 for (var key in obj) {
754 if (obj.hasOwnProperty(key)) {
755 keys.push(key);
756 }
757 }
758 return keys.sort();
759 }
760
761 function forEachSorted(obj, iterator, context) {
762 var keys = sortedKeys(obj);

Callers 1

forEachSortedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected