main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
304 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var isObject = require('../internals/is-object');
|
---|
| 3 |
|
---|
| 4 | var $String = String;
|
---|
| 5 | var $TypeError = TypeError;
|
---|
| 6 |
|
---|
| 7 | // `Assert: Type(argument) is Object`
|
---|
| 8 | module.exports = function (argument) {
|
---|
| 9 | if (isObject(argument)) return argument;
|
---|
| 10 | throw new $TypeError($String(argument) + ' is not an object');
|
---|
| 11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.