diff --git a/README.md b/README.md index 5b6978e95..750069183 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.9.1 +# lodash v3.9.2 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash.gt/README.md b/lodash.gt/README.md index 74767bc15..508d83535 100644 --- a/lodash.gt/README.md +++ b/lodash.gt/README.md @@ -1,4 +1,4 @@ -# lodash.gt v3.9.1 +# lodash.gt v3.9.2 The [lodash](https://lodash.com/) method `_.gt` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var gt = require('lodash.gt'); ``` -See the [documentation](https://lodash.com/docs#gt) or [package source](https://github.com/lodash/lodash/blob/3.9.1-npm-packages/lodash.gt) for more details. +See the [documentation](https://lodash.com/docs#gt) or [package source](https://github.com/lodash/lodash/blob/3.9.2-npm-packages/lodash.gt) for more details. diff --git a/lodash.gt/index.js b/lodash.gt/index.js index e5d6b1e7f..8e69a7fed 100644 --- a/lodash.gt/index.js +++ b/lodash.gt/index.js @@ -11,9 +11,7 @@ var NAN = 0 / 0; /** `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; @@ -35,7 +33,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; @@ -95,34 +93,9 @@ function createRelationalOperation(operator) { */ var gt = createRelationalOperation(baseGt); -/** - * 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 @@ -231,7 +204,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') { diff --git a/lodash.gt/package.json b/lodash.gt/package.json index 10fd2ed1c..160552f39 100644 --- a/lodash.gt/package.json +++ b/lodash.gt/package.json @@ -1,6 +1,6 @@ { "name": "lodash.gt", - "version": "3.9.1", + "version": "3.9.2", "description": "The lodash method `_.gt` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.gte/README.md b/lodash.gte/README.md index f10e1374b..d9ec437b4 100644 --- a/lodash.gte/README.md +++ b/lodash.gte/README.md @@ -1,4 +1,4 @@ -# lodash.gte v3.9.1 +# lodash.gte v3.9.2 The [lodash](https://lodash.com/) method `_.gte` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var gte = require('lodash.gte'); ``` -See the [documentation](https://lodash.com/docs#gte) or [package source](https://github.com/lodash/lodash/blob/3.9.1-npm-packages/lodash.gte) for more details. +See the [documentation](https://lodash.com/docs#gte) or [package source](https://github.com/lodash/lodash/blob/3.9.2-npm-packages/lodash.gte) for more details. diff --git a/lodash.gte/index.js b/lodash.gte/index.js index 272be7bb3..781512eed 100644 --- a/lodash.gte/index.js +++ b/lodash.gte/index.js @@ -11,9 +11,7 @@ var NAN = 0 / 0; /** `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; @@ -35,7 +33,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; @@ -84,34 +82,9 @@ var gte = createRelationalOperation(function(value, other) { return value >= other; }); -/** - * 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 @@ -220,7 +193,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') { diff --git a/lodash.gte/package.json b/lodash.gte/package.json index 87be8b49f..733e25df1 100644 --- a/lodash.gte/package.json +++ b/lodash.gte/package.json @@ -1,6 +1,6 @@ { "name": "lodash.gte", - "version": "3.9.1", + "version": "3.9.2", "description": "The lodash method `_.gte` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.lt/README.md b/lodash.lt/README.md index 893c88ed6..15727137d 100644 --- a/lodash.lt/README.md +++ b/lodash.lt/README.md @@ -1,4 +1,4 @@ -# lodash.lt v3.9.1 +# lodash.lt v3.9.2 The [lodash](https://lodash.com/) method `_.lt` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var lt = require('lodash.lt'); ``` -See the [documentation](https://lodash.com/docs#lt) or [package source](https://github.com/lodash/lodash/blob/3.9.1-npm-packages/lodash.lt) for more details. +See the [documentation](https://lodash.com/docs#lt) or [package source](https://github.com/lodash/lodash/blob/3.9.2-npm-packages/lodash.lt) for more details. diff --git a/lodash.lt/index.js b/lodash.lt/index.js index 2ad265b2d..193c860b7 100644 --- a/lodash.lt/index.js +++ b/lodash.lt/index.js @@ -11,9 +11,7 @@ var NAN = 0 / 0; /** `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; @@ -35,7 +33,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; @@ -70,34 +68,9 @@ function createRelationalOperation(operator) { }; } -/** - * 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 @@ -231,7 +204,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') { diff --git a/lodash.lt/package.json b/lodash.lt/package.json index 6178fe059..2ba6a8c3d 100644 --- a/lodash.lt/package.json +++ b/lodash.lt/package.json @@ -1,6 +1,6 @@ { "name": "lodash.lt", - "version": "3.9.1", + "version": "3.9.2", "description": "The lodash method `_.lt` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.lte/README.md b/lodash.lte/README.md index 693309c4c..aad1fee79 100644 --- a/lodash.lte/README.md +++ b/lodash.lte/README.md @@ -1,4 +1,4 @@ -# lodash.lte v3.9.1 +# lodash.lte v3.9.2 The [lodash](https://lodash.com/) method `_.lte` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var lte = require('lodash.lte'); ``` -See the [documentation](https://lodash.com/docs#lte) or [package source](https://github.com/lodash/lodash/blob/3.9.1-npm-packages/lodash.lte) for more details. +See the [documentation](https://lodash.com/docs#lte) or [package source](https://github.com/lodash/lodash/blob/3.9.2-npm-packages/lodash.lte) for more details. diff --git a/lodash.lte/index.js b/lodash.lte/index.js index ee96c8ae1..00e02991a 100644 --- a/lodash.lte/index.js +++ b/lodash.lte/index.js @@ -11,9 +11,7 @@ var NAN = 0 / 0; /** `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; @@ -35,7 +33,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; @@ -57,34 +55,9 @@ function createRelationalOperation(operator) { }; } -/** - * 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 @@ -220,7 +193,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') { diff --git a/lodash.lte/package.json b/lodash.lte/package.json index 74a23bd80..523e4afcb 100644 --- a/lodash.lte/package.json +++ b/lodash.lte/package.json @@ -1,6 +1,6 @@ { "name": "lodash.lte", - "version": "3.9.1", + "version": "3.9.2", "description": "The lodash method `_.lte` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",