UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

6 lines (5 loc) 237 B
module.exports = function (it, Constructor, name, forbiddenField) { if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { throw TypeError(name + ': incorrect invocation!'); } return it; };