https://github.com/turfjs/turf-equal
determine whether two geojson objects are equal
https://github.com/turfjs/turf-equal
Last synced: 5 months ago
JSON representation
determine whether two geojson objects are equal
- Host: GitHub
- URL: https://github.com/turfjs/turf-equal
- Owner: Turfjs
- Created: 2015-01-26T16:46:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T13:58:59.000Z (about 8 years ago)
- Last Synced: 2024-11-11T23:15:54.744Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DEPRECATED - replaced with [`@turf/boolean-equal`](https://github.com/Turfjs/turf/tree/master/packages/turf-boolean-equal)
# turf-equal[](http://travis-ci.org/Turfjs/turf-equal)
determine whether two geojson objects are equal
### `turf.equal(a, b)`
Determine whether two GeoJSON objects are equal to each other.
### Parameters
| parameter | type | description |
| --------- | ------- | ---------------- |
| `a` | GeoJSON | the first object |
| `b` | GeoJSON | the first object |### Example
```js
// turf.equal(turf.point([0,0]), turf.point([1,1]))
```**Returns** `Boolean`, true, if the objects are equal, false if not.
## Installation
Requires [nodejs](http://nodejs.org/).
```sh
$ npm install turf-equal
```## Tests
```sh
$ npm test
```