|
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:
305 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var isObject = require('../internals/is-object');
|
|---|
| 3 |
|
|---|
| 4 | var $String = String;
|
|---|
| 5 | var $TypeError = TypeError;
|
|---|
| 6 |
|
|---|
| 7 | module.exports = function (argument) {
|
|---|
| 8 | if (argument === undefined || isObject(argument)) return argument;
|
|---|
| 9 | throw new $TypeError($String(argument) + ' is not an object or undefined');
|
|---|
| 10 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.