From b86a160e0e44eac9c31a0d0e92241caa04d68294 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 13 Aug 2016 10:00:36 -0700 Subject: [PATCH] Bump to v4.12.1. --- README.md | 2 +- lodash.tofinite/README.md | 4 ++-- lodash.tofinite/index.js | 35 ++++------------------------------- lodash.tofinite/package.json | 2 +- 4 files changed, 8 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 322909de2..3f8ac48d1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v4.12.0 +# lodash v4.12.1 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash.tofinite/README.md b/lodash.tofinite/README.md index ac389ec8f..f20b9e345 100644 --- a/lodash.tofinite/README.md +++ b/lodash.tofinite/README.md @@ -1,4 +1,4 @@ -# lodash.tofinite v4.12.0 +# lodash.tofinite v4.12.1 The [lodash](https://lodash.com/) method `_.toFinite` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var toFinite = require('lodash.tofinite'); ``` -See the [documentation](https://lodash.com/docs#toFinite) or [package source](https://github.com/lodash/lodash/blob/4.12.0-npm-packages/lodash.tofinite) for more details. +See the [documentation](https://lodash.com/docs#toFinite) or [package source](https://github.com/lodash/lodash/blob/4.12.1-npm-packages/lodash.tofinite) for more details. diff --git a/lodash.tofinite/index.js b/lodash.tofinite/index.js index 2b2f8c4e2..a70807e3b 100644 --- a/lodash.tofinite/index.js +++ b/lodash.tofinite/index.js @@ -13,9 +13,7 @@ var INFINITY = 1 / 0, 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; @@ -37,39 +35,14 @@ 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; -/** - * 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 @@ -213,7 +186,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.tofinite/package.json b/lodash.tofinite/package.json index 3afa8f1ad..1883ea756 100644 --- a/lodash.tofinite/package.json +++ b/lodash.tofinite/package.json @@ -1,6 +1,6 @@ { "name": "lodash.tofinite", - "version": "4.12.0", + "version": "4.12.1", "description": "The lodash method `_.toFinite` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",