This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/@sinonjs/samsam/lib/is-map.js

15 lines
316 B
JavaScript
Raw Normal View History

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