Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s

This commit is contained in:
2023-11-19 13:27:05 +01:00
parent 9e76cefde3
commit 2b58149655
857 changed files with 16626 additions and 105549 deletions

22
node_modules/underscore/cjs/toArray.js generated vendored Normal file
View File

@ -0,0 +1,22 @@
var isArray = require('./isArray.js');
var _setup = require('./_setup.js');
var isString = require('./isString.js');
var _isArrayLike = require('./_isArrayLike.js');
var map = require('./map.js');
var identity = require('./identity.js');
var values = require('./values.js');
// Safely create a real, live array from anything iterable.
var reStrSymbol = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
function toArray(obj) {
if (!obj) return [];
if (isArray(obj)) return _setup.slice.call(obj);
if (isString(obj)) {
// Keep surrogate pair characters together.
return obj.match(reStrSymbol);
}
if (_isArrayLike(obj)) return map(obj, identity);
return values(obj);
}
module.exports = toArray;