deep-for-each
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="2.0.2"></a> | ||
## [2.0.2](https://github.com/moxystudio/js-deep-for-each/compare/v2.0.1...v2.0.2) (2018-01-24) | ||
<a name="2.0.1"></a> | ||
@@ -7,0 +12,0 @@ ## [2.0.1](https://github.com/moxystudio/js-deep-for-each/compare/v2.0.0...v2.0.1) (2018-01-24) |
{ | ||
"name": "deep-for-each", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Recursively iterates over arrays and objects", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -40,4 +40,4 @@ # deep-for-each | ||
prop5: 'foo', | ||
prop6: 'bar' | ||
} | ||
prop6: 'bar', | ||
}, | ||
}, (value, prop, subject, path) => { | ||
@@ -49,3 +49,3 @@ // `value` is the current property value | ||
console.log(`${path}: ${value}`); | ||
console.log(`${path}:`, value); | ||
}); | ||
@@ -58,9 +58,9 @@ ``` | ||
prop1: foo | ||
prop2: ['foo', 'bar'] | ||
prop2: [ 'foo', 'bar' ] | ||
prop2[0]: foo | ||
prop2[1]: bar | ||
prop3: ['foo', 'foo'] | ||
prop3: [ 'foo', 'foo' ] | ||
prop3[0]: foo | ||
prop3[1]: foo | ||
prop4: {prop5: 'foo', prop6: 'bar'} | ||
prop4: { prop5: 'foo', prop6: 'bar' } | ||
prop4.prop5: foo | ||
@@ -67,0 +67,0 @@ prop4.prop6: bar |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8161