summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/arrify/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/arrify/index.js')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/arrify/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/arrify/index.js b/bin/wiki/ImportarDesdeURL/node_modules/arrify/index.js
new file mode 100644
index 00000000..2a2fdeeb
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/arrify/index.js
@@ -0,0 +1,8 @@
+'use strict';
+module.exports = function (val) {
+ if (val === null || val === undefined) {
+ return [];
+ }
+
+ return Array.isArray(val) ? val : [val];
+};