index.js
function position(position, name) {
  if (position != null) {
    assert.ok(object(position), '`' + name + '` should be an object')

    if (position.line != null) {
      assert.ok('line' in position, '`' + name + '` should have numeric `line`')
      assert.ok(position.line >= 1, '`' + name + '.line` should be gte `1`')
    }

    if (position.column != null) {
      assert.ok(
        'column' in position,
        '`' + name + '` should have numeric `column`'
      )
      assert.ok(position.column >= 1, '`' + name + '.column` should be gte `1`')
    }
  }
}
function position(position, name) {
  if (position != null) {
    assert.ok(object(position), '`' + name + '` should be an object')

    if (position.line != null) {
      assert.ok('line' in position, '`' + name + '` should have numeric `line`')
      assert.ok(position.line >= 1, '`' + name + '.line` should be gte `1`')
    }

    if (position.column != null) {
      assert.ok(
        'column' in position,
        '`' + name + '` should have numeric `column`'
      )
      assert.ok(position.column >= 1, '`' + name + '.column` should be gte `1`')
    }
  }
}
/* Assert `location` is a Unist Location.