mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-11 06:59:29 -07:00
15 lines
316 B
JavaScript
15 lines
316 B
JavaScript
|
"use strict";
|
||
|
|
||
|
/**
|
||
|
* Returns `true` when `value` is a Map
|
||
|
*
|
||
|
* @param {*} value A value to examine
|
||
|
* @returns {boolean} `true` when `value` is an instance of `Map`, `false` otherwise
|
||
|
* @private
|
||
|
*/
|
||
|
function isMap(value) {
|
||
|
return typeof Map !== "undefined" && value instanceof Map;
|
||
|
}
|
||
|
|
||
|
module.exports = isMap;
|