Assert that an object has x/y coordinates
$ npm install --save assert-coordinates
var assertCoordinates = require('assert-coordinates')
assertCoordinates({x: 0, y: 2})
//=> noop
assertCoordinates({})
//=> throw new TypeError(...)
Required
Type: object
An object to check for x/y number coordinates.
MIT © Ben Drucker