Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-redirect / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/is-redirect/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/is-redirect/index.js
new file mode 100644 (file)
index 0000000..75ec009
--- /dev/null
@@ -0,0 +1,14 @@
+'use strict';
+module.exports = function (x) {
+       if (typeof x !== 'number') {
+               throw new TypeError('Expected a number');
+       }
+
+       return x === 300 ||
+               x === 301 ||
+               x === 302 ||
+               x === 303 ||
+               x === 305 ||
+               x === 307 ||
+               x === 308;
+};