📄 an-instance.js
/home/palash/git/site/node_modules/core-js/internals/an-instance.js
Language: js • Lines: 9
'use strict';
var isPrototypeOf = require('../internals/object-is-prototype-of');

var $TypeError = TypeError;

module.exports = function (it, Prototype) {
  if (isPrototypeOf(Prototype, it)) return it;
  throw new $TypeError('Incorrect invocation');
};