source: imaps-frontend/node_modules/es-object-atoms/RequireObjectCoercible.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 313 bytes
Line 
1'use strict';
2
3var $TypeError = require('es-errors/type');
4
5/** @type {import('./RequireObjectCoercible')} */
6module.exports = function RequireObjectCoercible(value) {
7 if (value == null) {
8 throw new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));
9 }
10 return value;
11};
Note: See TracBrowser for help on using the repository browser.