Sha256: 2f869e5ab2e62de96ce71c21b33e2192589ebfc8e396e5f3619d0327a6254eeb
Contents?: true
Size: 321 Bytes
Versions: 7
Compression:
Stored size: 321 Bytes
Contents
var isConstructor = require('../internals/is-constructor'); var tryToString = require('../internals/try-to-string'); // `Assert: IsConstructor(argument) is true` module.exports = function (argument) { if (isConstructor(argument)) return argument; throw TypeError(tryToString(argument) + ' is not a constructor'); };
Version data entries
7 entries across 7 versions & 1 rubygems