Bump to v4.3.0.

This commit is contained in:
John-David Dalton
2016-02-07 23:04:40 -08:00
parent e2a6db008f
commit 3514f50902
42 changed files with 529 additions and 109 deletions

27
isWeakMap.js Normal file
View File

@@ -0,0 +1,27 @@
define(['./_getTag', './isObjectLike'], function(getTag, isObjectLike) {
/** `Object#toString` result references. */
var weakMapTag = '[object WeakMap]';
/**
* Checks if `value` is classified as a `WeakMap` object.
*
* @static
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
* @example
*
* _.isWeakMap(new WeakMap);
* // => true
*
* _.isWeakMap(new Map);
* // => false
*/
function isWeakMap(value) {
return isObjectLike(value) && getTag(value) == weakMapTag;
}
return isWeakMap;
});