Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
parent
10695e6a20
commit
ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions
15
node_modules/es-abstract/2022/thisStringValue.js
generated
vendored
Normal file
15
node_modules/es-abstract/2022/thisStringValue.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf');
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object
|
||||
|
||||
module.exports = function thisStringValue(value) {
|
||||
if (Type(value) === 'String') {
|
||||
return value;
|
||||
}
|
||||
|
||||
return $StringValueOf(value);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue