astro-ghostcms/.pnpm-store/v3/files/f0/2e54509519ad82b2c2372645be9...

13 lines
297 B
Plaintext

'use strict';
var $TypeError = require('es-errors/type');
// http://262.ecma-international.org/5.1/#sec-9.10
module.exports = function CheckObjectCoercible(value, optMessage) {
if (value == null) {
throw new $TypeError(optMessage || ('Cannot call method on ' + value));
}
return value;
};