Bump to v4.3.2.

This commit is contained in:
John-David Dalton
2016-03-01 21:06:36 -08:00
parent 5b0364fb20
commit 958d7f06dd
56 changed files with 372 additions and 298 deletions

View File

@@ -1,4 +1,4 @@
# lodash.times v4.3.1
# lodash.times v4.3.2
The [lodash](https://lodash.com/) method `_.times` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var times = require('lodash.times');
```
See the [documentation](https://lodash.com/docs#times) or [package source](https://github.com/lodash/lodash/blob/4.3.1-npm-packages/lodash.times) for more details.
See the [documentation](https://lodash.com/docs#times) or [package source](https://github.com/lodash/lodash/blob/4.3.2-npm-packages/lodash.times) for more details.

View File

@@ -17,9 +17,7 @@ var INFINITY = 1 / 0,
var MAX_ARRAY_LENGTH = 4294967295;
/** `Object#toString` result references. */
var funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
symbolTag = '[object Symbol]';
var symbolTag = '[object Symbol]';
/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;
@@ -60,7 +58,7 @@ var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -68,34 +66,9 @@ var objectToString = objectProto.toString;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMin = Math.min;
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8 which returns 'object' for typed array and weak map constructors,
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
@@ -212,7 +185,7 @@ function toFinite(value) {
* Converts `value` to an integer.
*
* **Note:** This method is loosely based on
* [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
*
* @static
* @memberOf _
@@ -272,7 +245,7 @@ function toNumber(value) {
return NAN;
}
if (isObject(value)) {
var other = isFunction(value.valueOf) ? value.valueOf() : value;
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
value = isObject(other) ? (other + '') : other;
}
if (typeof value != 'string') {

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.times",
"version": "4.3.1",
"version": "4.3.2",
"description": "The lodash method `_.times` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",