lib/avltree.js
function create(key, value) {
  if (!Buffer.isBuffer(key)) {
    throw new TypeError('expected buffer')
  }

  return {
    key,
    value,
    left: null,
    right: null,
    height: 0
  }
}
function create(key, value) {
  if (!Buffer.isBuffer(key)) {
    throw new TypeError('expected buffer')
  }

  return {
    key,
    value,
    left: null,
    right: null,
    height: 0
  }
}
function create ( key , value ) { if ( ! Buffer . isBuffer ( key ) ) { throw new TypeError ( 'expected buffer' ) } return { key , value , left : null , right : null , height : 0 } }
create new AVL tree node
@returns {{key: null, value: null, height: number, left: null, right: null}}
create new AVL tree node