mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-07 12:28:57 -05:00
9 lines
236 B
JavaScript
9 lines
236 B
JavaScript
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
|
|
var $TypeError = TypeError;
|
|
|
|
module.exports = function (it, Prototype) {
|
|
if (isPrototypeOf(Prototype, it)) return it;
|
|
throw $TypeError('Incorrect invocation');
|
|
};
|