code: function getValueBucket(val) {
    if (val === null) {
      return 'null';
    }
    var bucket = typeof val;
    if (bucket === 'object') {
      // Could be bytes, fixed, array, map, or record.
      if (Array.isArray(val)) {
        return 'array';
      } else if (Buffer.isBuffer(val)) {
        return 'buffer';
      }
    }
    return bucket;
  }
docs: Infer a value's bucket (see unwrapped unions for more details).
  
  @param val {...} Any value.