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

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • 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.