doipjs/node_modules/@sinonjs/samsam/lib/is-map.js
Yarmo Mackenbach e996bc8023 Initial commit
2020-10-23 22:35:53 +02:00

14 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;