Skip to content

Conversation

@bjohansebas
Copy link
Member

@bjohansebas bjohansebas commented Aug 12, 2025

Basically, we support an array as an argument for req.is. This hasn’t been documented, and we should document it on the website.

Ref:

if (!Array.isArray(types)) {

@bjohansebas bjohansebas requested a review from a team August 12, 2025 22:57
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
@@ -1,7 +1,8 @@
'use strict'

var express = require('..')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var express = require('..')
const express = require('..')
'use strict'

var express = require('..')
var request = require('supertest')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var request = require('supertest')
const request = require('supertest')

var express = require('..')
var request = require('supertest')
var after = require('after')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var after = require('after')
const after = require('after')

// in modern JS is better to use const instead of var!

Copy link

@hamidrezaghavami hamidrezaghavami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your code was so structured, I mainly review it for learning purposes, well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants