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
isMap.js Normal file
View File

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