lodash.isfunction
Advanced tools
Comparing version 3.0.1 to 3.0.2
25
index.js
/** | ||
* lodash 3.0.1 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.2 (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.7.0 <http://underscorejs.org/LICENSE> | ||
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
@@ -17,5 +17,5 @@ * Available under MIT license <https://lodash.com/license> | ||
/** | ||
* Used to match `RegExp` special characters. | ||
* See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special) | ||
* for more details. | ||
* Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). | ||
* In addition to special characters the forward slash is escaped to allow for | ||
* easier `eval` use and `Function` compilation. | ||
*/ | ||
@@ -62,3 +62,3 @@ var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, | ||
function isObjectLike(value) { | ||
return (value && typeof value == 'object') || false; | ||
return !!value && typeof value == 'object'; | ||
} | ||
@@ -73,5 +73,4 @@ | ||
/** | ||
* Used to resolve the `toStringTag` of values. | ||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) | ||
* for more details. | ||
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) | ||
* of values. | ||
*/ | ||
@@ -135,8 +134,8 @@ var objToString = objectProto.toString; | ||
} | ||
return (isObjectLike(value) && reHostCtor.test(value)) || false; | ||
return isObjectLike(value) && reHostCtor.test(value); | ||
} | ||
/** | ||
* Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*", | ||
* "+", "(", ")", "[", "]", "{" and "}" in `string`. | ||
* Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?", | ||
* "*", "+", "(", ")", "[", "]", "{" and "}" in `string`. | ||
* | ||
@@ -151,3 +150,3 @@ * @static | ||
* _.escapeRegExp('[lodash](https://lodash.com/)'); | ||
* // => '\[lodash\]\(https://lodash\.com/\)' | ||
* // => '\[lodash\]\(https:\/\/lodash\.com\/\)' | ||
*/ | ||
@@ -154,0 +153,0 @@ function escapeRegExp(string) { |
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, | ||
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, | ||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "lodash.isfunction", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "The modern build of lodash’s `_.isFunction` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.isfunction v3.0.1 | ||
# lodash.isfunction v3.0.2 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isFunction` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#isFunction) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isfunction) for more details. | ||
See the [documentation](https://lodash.com/docs#isFunction) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isfunction) for more details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7329
140