16 lines
343 B
JavaScript
16 lines
343 B
JavaScript
|
// https://github.com/ljharb/proposal-is-error
|
||
|
var $export = require('./_export')
|
||
|
, cof = require('./_cof');
|
||
|
|
||
|
$export($export.S, 'Error', {
|
||
|
isError: function isError(it){
|
||
|
return cof(it) === 'Error';
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
//////////////////
|
||
|
// WEBPACK FOOTER
|
||
|
// ./~/core-js/modules/es7.error.is-error.js
|
||
|
// module id = 1957
|
||
|
// module chunks = 4
|