@turf/meta
Advanced tools
Comparing version 3.7.3 to 3.7.5
10
index.js
@@ -12,3 +12,3 @@ /** | ||
* var point = { type: 'Point', coordinates: [0, 0] }; | ||
* coordEach(point, function(coords) { | ||
* turfMeta.coordEach(point, function(coords) { | ||
* // coords is equal to [0, 0] | ||
@@ -109,3 +109,3 @@ * }); | ||
* var point = { type: 'Feature', geometry: null, properties: { foo: 1 } }; | ||
* propEach(point, function(props) { | ||
* turfMeta.propEach(point, function(props) { | ||
* // props is equal to { foo: 1} | ||
@@ -145,3 +145,3 @@ * }); | ||
* opts = opts || {} | ||
* return propReduce(layer, function (prev, props) { | ||
* return turfMeta.propReduce(layer, function (prev, props) { | ||
* for (var prop in props) { | ||
@@ -171,3 +171,3 @@ * if (prev[prop]) continue | ||
* var feature = { type: 'Feature', geometry: null, properties: {} }; | ||
* featureEach(feature, function(feature) { | ||
* turfMeta.featureEach(feature, function(feature) { | ||
* // feature == feature | ||
@@ -217,3 +217,3 @@ * }); | ||
* }; | ||
* geomEach(point, function(geom) { | ||
* turfMeta.geomEach(point, function(geom) { | ||
* // geom is the point geometry | ||
@@ -220,0 +220,0 @@ * }); |
{ | ||
"name": "@turf/meta", | ||
"version": "3.7.3", | ||
"version": "3.7.5", | ||
"description": "meta and functional programming helpers for turf modules", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"tape": "^3.4.0", | ||
"@turf/random": "^3.7.3" | ||
"@turf/random": "^3.7.5" | ||
}, | ||
@@ -21,0 +21,0 @@ "repository": { |
@@ -19,3 +19,3 @@ # @turf/meta | ||
var point = { type: 'Point', coordinates: [0, 0] }; | ||
coordEach(point, function(coords) { | ||
turfMeta.coordEach(point, function(coords) { | ||
// coords is equal to [0, 0] | ||
@@ -56,3 +56,3 @@ }); | ||
var point = { type: 'Feature', geometry: null, properties: { foo: 1 } }; | ||
propEach(point, function(props) { | ||
turfMeta.propEach(point, function(props) { | ||
// props is equal to { foo: 1} | ||
@@ -82,3 +82,3 @@ }); | ||
opts = opts || {} | ||
return propReduce(layer, function (prev, props) { | ||
return turfMeta.propReduce(layer, function (prev, props) { | ||
for (var prop in props) { | ||
@@ -108,3 +108,3 @@ if (prev[prop]) continue | ||
var feature = { type: 'Feature', geometry: null, properties: {} }; | ||
featureEach(feature, function(feature) { | ||
turfMeta.featureEach(feature, function(feature) { | ||
// feature == feature | ||
@@ -143,3 +143,3 @@ }); | ||
}; | ||
geomEach(point, function(geom) { | ||
turfMeta.geomEach(point, function(geom) { | ||
// geom is the point geometry | ||
@@ -146,0 +146,0 @@ }); |
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
25997