lodash.isfunction
Advanced tools
Comparing version 3.0.3 to 3.0.4
26
index.js
/** | ||
* 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 ./` | ||
@@ -39,3 +39,3 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
/** | ||
* Converts `value` to a string if it is not one. An empty string is returned | ||
* Converts `value` to a string if it's not one. An empty string is returned | ||
* for `null` or `undefined` values. | ||
@@ -71,2 +71,5 @@ * | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** | ||
@@ -80,10 +83,23 @@ * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) | ||
var reIsNative = RegExp('^' + | ||
escapeRegExp(objToString) | ||
.replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' | ||
escapeRegExp(fnToString.call(hasOwnProperty)) | ||
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' | ||
); | ||
/** Native method references. */ | ||
var Uint8Array = isNative(Uint8Array = global.Uint8Array) && Uint8Array; | ||
var Uint8Array = getNative(root, 'Uint8Array'); | ||
/** | ||
* Gets the native function at `key` of `object`. | ||
* | ||
* @private | ||
* @param {Object} object The object to query. | ||
* @param {string} key The key of the method to get. | ||
* @returns {*} Returns the function if it's native, else `undefined`. | ||
*/ | ||
function getNative(object, key) { | ||
var value = object == null ? undefined : object[key]; | ||
return isNative(value) ? value : undefined; | ||
} | ||
/** | ||
* Checks if `value` is classified as a `Function` object. | ||
@@ -90,0 +106,0 @@ * |
{ | ||
"name": "lodash.isfunction", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"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.3 | ||
# lodash.isfunction v3.0.4 | ||
@@ -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.3-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.4-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
7819
154