* Check if `mime` is json or has +json structured syntax suffix. * * @param {String} mime * @return {Boolean} * @api private
(mime)
| 271 | */ |
| 272 | |
| 273 | function isJSON(mime) { |
| 274 | // should match /json or +json |
| 275 | // but not /json-seq |
| 276 | return /[/+]json($|[^-\w])/i.test(mime); |
| 277 | } |
| 278 | |
| 279 | /** |
| 280 | * Initialize a new `Response` with the given `xhr`. |