aboutsummaryrefslogtreecommitdiffstats
path: root/src/JSON.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSON.js')
-rw-r--r--src/JSON.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/JSON.js b/src/JSON.js
index 399b2197..0d23314f 100644
--- a/src/JSON.js
+++ b/src/JSON.js
@@ -53,12 +53,12 @@ function fromJson(json, useNative) {
throw e;
}
- // TODO make foreach optionally recursive and remove this function
+ // TODO make forEach optionally recursive and remove this function
function transformDates(obj) {
if (isString(obj) && obj.length === DATE_ISOSTRING_LN) {
return angularString.toDate(obj);
} else if (isArray(obj) || isObject(obj)) {
- foreach(obj, function(val, name) {
+ forEach(obj, function(val, name) {
obj[name] = transformDates(val);
});
}