Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / arrify / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/arrify/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/arrify/index.js
new file mode 100644 (file)
index 0000000..2a2fdee
--- /dev/null
@@ -0,0 +1,8 @@
+'use strict';
+module.exports = function (val) {
+       if (val === null || val === undefined) {
+               return [];
+       }
+
+       return Array.isArray(val) ? val : [val];
+};