function gettype(obj) {
  var type = typeof obj;

  if (type !== 'object') {
    return type;
  }

  // inspect [[Class]] for objects
  return toString$6.call(obj)
    .replace(objectRegExp, '$1');
}
Compile trust function for multiple subnets.

@param {Array} subnets
@private