Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2016-02-11 03:49:22 +0300
committerKat Marchán <kzm@sykosomatic.org>2016-02-12 01:23:05 +0300
commit987cabe8a18abcb5a685685958bf74c7258a979c (patch)
tree1f00752ff819ac5313e8c5f1f09720dbab93ea69 /node_modules/lodash.union/index.js
parent5c641f05fdc153c6bb06a89c46fe2a345ce413db (diff)
lodash.union@4.1.0
Credit: @jdalton
Diffstat (limited to 'node_modules/lodash.union/index.js')
-rw-r--r--node_modules/lodash.union/index.js48
1 files changed, 3 insertions, 45 deletions
diff --git a/node_modules/lodash.union/index.js b/node_modules/lodash.union/index.js
index ab0637bba..db1ec1194 100644
--- a/node_modules/lodash.union/index.js
+++ b/node_modules/lodash.union/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 4.0.2 (Custom Build) <https://lodash.com/>
+ * lodash 4.1.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -11,7 +11,8 @@ var SetCache = require('lodash._setcache'),
arrayIncludesWith = require('lodash._arrayincludeswith'),
baseFlatten = require('lodash._baseflatten'),
cacheHas = require('lodash._cachehas'),
- rest = require('lodash.rest');
+ rest = require('lodash.rest'),
+ root = require('lodash._root');
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
@@ -26,49 +27,6 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to detect host constructors (Safari > 5). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
-/** Used to determine if values are of the language type `Object`. */
-var objectTypes = {
- 'function': true,
- 'object': true
-};
-
-/** Detect free variable `exports`. */
-var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
-
-/** Detect free variable `module`. */
-var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
-
-/** Detect free variable `global` from Node.js. */
-var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
-
-/** Detect free variable `self`. */
-var freeSelf = checkGlobal(objectTypes[typeof self] && self);
-
-/** Detect free variable `window`. */
-var freeWindow = checkGlobal(objectTypes[typeof window] && window);
-
-/** Detect `this` as the global object. */
-var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
-
-/**
- * Used as a reference to the global object.
- *
- * The `this` value is used if it's the global object to avoid Greasemonkey's
- * restricted `window` object, otherwise the `window` object is used.
- */
-var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
-
-/**
- * Checks if `value` is a global object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {null|Object} Returns `value` if it's a global object, else `null`.
- */
-function checkGlobal(value) {
- return (value && value.Object === Object) ? value : null;
-}
-
/**
* Checks if `value` is a host object in IE < 9.
*