Version 1
[yaffs-website] / node_modules / core-js / library / modules / es7.error.is-error.js
1 // https://github.com/ljharb/proposal-is-error
2 var $export = require('./_export')
3   , cof     = require('./_cof');
4
5 $export($export.S, 'Error', {
6   isError: function isError(it){
7     return cof(it) === 'Error';
8   }
9 });