Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.some

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.some - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

41

index.js
/**
* lodash 4.3.0 (Custom Build) <https://lodash.com/>
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`

@@ -44,16 +44,2 @@ * Copyright jQuery Foundation and other contributors <https://jquery.org/>

/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
length = length == null ? MAX_SAFE_INTEGER : length;
return value > -1 && value % 1 == 0 && value < length;
}
/** Used for built-in method references. */

@@ -63,3 +49,4 @@ var objectProto = Object.prototype;

/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.

@@ -74,3 +61,3 @@ */

* @param {string} key The key of the property to get.
* @returns {Function} Returns the new function.
* @returns {Function} Returns the new accessor function.
*/

@@ -116,2 +103,17 @@ function baseProperty(key) {

/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
length = length == null ? MAX_SAFE_INTEGER : length;
return !!length &&
(typeof value == 'number' || reIsUint.test(value)) &&
(value > -1 && value % 1 == 0 && value < length);
}
/**
* Checks if the given arguments are from an iteratee call.

@@ -336,4 +338,5 @@ *

/**
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*

@@ -340,0 +343,0 @@ * @static

{
"name": "lodash.some",
"version": "4.3.0",
"version": "4.4.0",
"description": "The lodash method `_.some` exported as a module.",

@@ -19,4 +19,4 @@ "homepage": "https://lodash.com/",

"lodash._baseeach": "~4.1.0",
"lodash._baseiteratee": "~4.6.0"
"lodash._baseiteratee": "~4.7.0"
}
}

@@ -1,2 +0,2 @@

# lodash.some v4.3.0
# lodash.some v4.4.0

@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.some` exported as a [Node.js](https://nodejs.org/) module.

See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.some) for more details.
See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/4.4.0-npm-packages/lodash.some) for more details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc