'use strict';

const redirectStatus = new Set([301, 302, 303, 307, 308]);

/**
 * Redirect code matching
 *
 * @param {number} code - Status code
 * @return {boolean}
 */
const isRedirect = code => {
	return redirectStatus.has(code);
};

exports.isRedirect = isRedirect;
//# sourceMappingURL=is-redirect.js.map
