Bump to v4.16.5.

This commit is contained in:
John-David Dalton
2016-10-30 20:06:57 -07:00
parent 52a75b18e4
commit b58a63eff1
112 changed files with 494 additions and 517 deletions

View File

@@ -1,20 +1,11 @@
define(['./isObject'], function(isObject) {
define(['./_baseGetTag', './isObject'], function(baseGetTag, isObject) {
/** `Object#toString` result references. */
var funcTag = '[object Function]',
var asyncTag = '[object AsyncFunction]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
proxyTag = '[object Proxy]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`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.
*
@@ -33,10 +24,13 @@ define(['./isObject'], function(isObject) {
* // => false
*/
function isFunction(value) {
if (!isObject(value)) {
return false;
}
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed array and other constructors.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag || tag == proxyTag;
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var tag = baseGetTag(value);
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
return isFunction;