main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
476 bytes
|
Line | |
---|
1 | import getTag from './_getTag.js';
|
---|
2 | import isObjectLike from './isObjectLike.js';
|
---|
3 |
|
---|
4 | /** `Object#toString` result references. */
|
---|
5 | var mapTag = '[object Map]';
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * The base implementation of `_.isMap` without Node.js optimizations.
|
---|
9 | *
|
---|
10 | * @private
|
---|
11 | * @param {*} value The value to check.
|
---|
12 | * @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
---|
13 | */
|
---|
14 | function baseIsMap(value) {
|
---|
15 | return isObjectLike(value) && getTag(value) == mapTag;
|
---|
16 | }
|
---|
17 |
|
---|
18 | export default baseIsMap;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.