source: node_modules/core-js-pure/internals/a-map.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 383 bytes
Line 
1'use strict';
2var tryToString = require('../internals/try-to-string');
3
4var $TypeError = TypeError;
5
6// Perform ? RequireInternalSlot(M, [[MapData]])
7module.exports = function (it) {
8 if (typeof it == 'object' && 'size' in it && 'has' in it && 'get' in it && 'set' in it && 'delete' in it && 'entries' in it) return it;
9 throw new $TypeError(tryToString(it) + ' is not a map');
10};
Note: See TracBrowser for help on using the repository browser.