Sha256: 822d27275048ec50b679bd8b51facb0d5ed2b1027bbb7c3de4d9e9d50961acf9
Contents?: true
Size: 345 Bytes
Versions: 31
Compression:
Stored size: 345 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); // 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; };
Version data entries
31 entries across 30 versions & 4 rubygems