summaryrefslogtreecommitdiff
path: root/includes/external/school/node_modules/lodash/toArray.js
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
committerRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
commit23563c7188e089929b60f9e10721c6fc43a220ff (patch)
treeedfe2b009c82900d4ac27db02222d2f68dcad846 /includes/external/school/node_modules/lodash/toArray.js
parent7a7a49332df7c852abbaa33c7e8e87f93d064d61 (diff)
downloadpluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.gz
pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.bz2
pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.zip
Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated)
Diffstat (limited to 'includes/external/school/node_modules/lodash/toArray.js')
-rw-r--r--includes/external/school/node_modules/lodash/toArray.js58
1 files changed, 0 insertions, 58 deletions
diff --git a/includes/external/school/node_modules/lodash/toArray.js b/includes/external/school/node_modules/lodash/toArray.js
deleted file mode 100644
index 9809584..0000000
--- a/includes/external/school/node_modules/lodash/toArray.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var Symbol = require('./_Symbol'),
- copyArray = require('./_copyArray'),
- getTag = require('./_getTag'),
- isArrayLike = require('./isArrayLike'),
- isString = require('./isString'),
- iteratorToArray = require('./_iteratorToArray'),
- mapToArray = require('./_mapToArray'),
- setToArray = require('./_setToArray'),
- stringToArray = require('./_stringToArray'),
- values = require('./values');
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
- setTag = '[object Set]';
-
-/** Built-in value references. */
-var symIterator = Symbol ? Symbol.iterator : undefined;
-
-/**
- * Converts `value` to an array.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Array} Returns the converted array.
- * @example
- *
- * _.toArray({ 'a': 1, 'b': 2 });
- * // => [1, 2]
- *
- * _.toArray('abc');
- * // => ['a', 'b', 'c']
- *
- * _.toArray(1);
- * // => []
- *
- * _.toArray(null);
- * // => []
- */
-function toArray(value) {
- if (!value) {
- return [];
- }
- if (isArrayLike(value)) {
- return isString(value) ? stringToArray(value) : copyArray(value);
- }
- if (symIterator && value[symIterator]) {
- return iteratorToArray(value[symIterator]());
- }
- var tag = getTag(value),
- func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
-
- return func(value);
-}
-
-module.exports = toArray;