Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
478 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var getTag = require('./_getTag'),
|
---|
| 2 | isObjectLike = require('./isObjectLike');
|
---|
| 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 | module.exports = baseIsMap;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.