summaryrefslogtreecommitdiff
path: root/node_modules/arrify/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/arrify/index.js')
-rw-r--r--node_modules/arrify/index.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/node_modules/arrify/index.js b/node_modules/arrify/index.js
deleted file mode 100644
index 49a5c9ad..00000000
--- a/node_modules/arrify/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-const arrify = value => {
- if (value === null || value === undefined) {
- return [];
- }
-
- if (Array.isArray(value)) {
- return value;
- }
-
- if (typeof value === 'string') {
- return [value];
- }
-
- if (typeof value[Symbol.iterator] === 'function') {
- return [...value];
- }
-
- return [value];
-};
-
-module.exports = arrify;