lodash.keysin
Advanced tools
Comparing version 3.0.6 to 3.0.7
50
index.js
/** | ||
* lodash 3.0.6 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.7 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
@@ -18,5 +18,2 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
/** Native method references. */ | ||
var propertyIsEnumerable = objectProto.propertyIsEnumerable; | ||
/** | ||
@@ -26,42 +23,5 @@ * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) | ||
*/ | ||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; | ||
var MAX_SAFE_INTEGER = 9007199254740991; | ||
/** | ||
* An object environment feature flags. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @type Object | ||
*/ | ||
var support = {}; | ||
(function(x) { | ||
var Ctor = function() { this.x = x; }, | ||
args = arguments, | ||
object = { '0': x, 'length': x }, | ||
props = []; | ||
Ctor.prototype = { 'valueOf': x, 'y': x }; | ||
for (var key in new Ctor) { props.push(key); } | ||
/** | ||
* Detect if `arguments` object indexes are non-enumerable. | ||
* | ||
* In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object | ||
* indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat | ||
* `arguments` object indexes as non-enumerable and fail `hasOwnProperty` | ||
* checks for indexes that exceed the number of function parameters and | ||
* whose associated argument values are `0`. | ||
* | ||
* @memberOf _.support | ||
* @type boolean | ||
*/ | ||
try { | ||
support.nonEnumArgs = !propertyIsEnumerable.call(args, 1); | ||
} catch(e) { | ||
support.nonEnumArgs = true; | ||
} | ||
}(1, 0)); | ||
/** | ||
* Checks if `value` is a valid array-like index. | ||
@@ -75,3 +35,3 @@ * | ||
function isIndex(value, length) { | ||
value = +value; | ||
value = typeof value == 'number' ? value : parseFloat(value); | ||
length = length == null ? MAX_SAFE_INTEGER : length; | ||
@@ -118,3 +78,3 @@ return value > -1 && value % 1 == 0 && value < length; | ||
var type = typeof value; | ||
return type == 'function' || (!!value && type == 'object'); | ||
return !!value && (type == 'object' || type == 'function'); | ||
} | ||
@@ -153,3 +113,3 @@ | ||
length = (length && isLength(length) && | ||
(isArray(object) || (support.nonEnumArgs && isArguments(object))) && length) || 0; | ||
(isArray(object) || isArguments(object)) && length) || 0; | ||
@@ -156,0 +116,0 @@ var Ctor = object.constructor, |
{ | ||
"name": "lodash.keysin", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "The modern build of lodash’s `_.keysIn` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.keysin v3.0.6 | ||
# lodash.keysin v3.0.7 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keysIn` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/3.0.6-npm-packages/lodash.keysin) for more details. | ||
See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/3.0.7-npm-packages/lodash.keysin) for more details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6530
119