Bump to v3.0.4.

This commit is contained in:
jdalton
2015-03-08 20:13:52 -07:00
committed by John-David Dalton
parent 415e8ce0ed
commit 85f4260a84
93 changed files with 299 additions and 533 deletions

View File

@@ -1,4 +1,4 @@
# lodash.isarguments v3.0.3
# lodash.isarguments v3.0.4
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.isArguments` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var isArguments = require('lodash.isarguments');
```
See the [documentation](https://lodash.com/docs#isArguments) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.isarguments) for more details.
See the [documentation](https://lodash.com/docs#isArguments) or [package source](https://github.com/lodash/lodash/blob/3.0.4-npm-packages/lodash.isarguments) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.0.3 (Custom Build) <https://lodash.com/>
* lodash 3.0.4 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -7,9 +7,6 @@
* Available under MIT license <https://lodash.com/license>
*/
/** `Object#toString` result references. */
var argsTag = '[object Arguments]';
/**
* Checks if `value` is object-like.
*
@@ -24,14 +21,14 @@ function isObjectLike(value) {
/** Used for native method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
* of values.
*/
var objToString = objectProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Native method references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
/**
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
* Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value.
*/
var MAX_SAFE_INTEGER = 9007199254740991;
@@ -75,7 +72,7 @@ function isArrayLike(value) {
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
* **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @private
* @param {*} value The value to check.
@@ -102,7 +99,8 @@ function isLength(value) {
* // => false
*/
function isArguments(value) {
return isObjectLike(value) && isArrayLike(value) && objToString.call(value) == argsTag;
return isObjectLike(value) && isArrayLike(value) &&
hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
}
module.exports = isArguments;

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.isarguments",
"version": "3.0.3",
"version": "3.0.4",
"description": "The modern build of lodashs `_.isArguments` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",