dicom-microscopy-viewer-changed
Version:
Interactive web-based viewer for DICOM Microscopy Images
9 lines (7 loc) • 349 B
JavaScript
;
var tryToString = require('../internals/try-to-string');
// Perform ? RequireInternalSlot(M, [[MapData]])
module.exports = function (it) {
if (typeof it == 'object' && 'size' in it && 'has' in it && 'get' in it && 'set' in it && 'delete' in it && 'entries' in it) return it;
throw TypeError(tryToString(it) + ' is not a map');
};