function isURLSearchParams(val) {
  return toString.call(val) === '[object URLSearchParams]';
}
Determine if a value is a URLSearchParams object

@param {Object} val The value to test
@returns {boolean} True if value is a URLSearchParams object, otherwise false