main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
346 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var isNullOrUndefined = require('../internals/is-null-or-undefined');
|
---|
3 |
|
---|
4 | var $TypeError = TypeError;
|
---|
5 |
|
---|
6 | // `RequireObjectCoercible` abstract operation
|
---|
7 | // https://tc39.es/ecma262/#sec-requireobjectcoercible
|
---|
8 | module.exports = function (it) {
|
---|
9 | if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
---|
10 | return it;
|
---|
11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.