Update checked-in dependencies
This commit is contained in:
parent
3ba511a8f1
commit
1c4c64199f
175 changed files with 13227 additions and 15136 deletions
14
node_modules/@sinonjs/samsam/lib/iterable-to-string.js
generated
vendored
14
node_modules/@sinonjs/samsam/lib/iterable-to-string.js
generated
vendored
|
|
@ -29,9 +29,9 @@ function iterableToString(obj) {
|
|||
function mapToString(map) {
|
||||
var representation = "";
|
||||
|
||||
/* eslint-disable-next-line local-rules/no-prototype-methods */
|
||||
map.forEach(function(value, key) {
|
||||
representation += "[" + stringify(key) + "," + stringify(value) + "],";
|
||||
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods
|
||||
map.forEach(function (value, key) {
|
||||
representation += `[${stringify(key)},${stringify(value)}],`;
|
||||
});
|
||||
|
||||
representation = slice(representation, 0, -1);
|
||||
|
|
@ -48,9 +48,9 @@ function mapToString(map) {
|
|||
function genericIterableToString(iterable) {
|
||||
var representation = "";
|
||||
|
||||
/* eslint-disable-next-line local-rules/no-prototype-methods */
|
||||
iterable.forEach(function(value) {
|
||||
representation += stringify(value) + ",";
|
||||
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods
|
||||
iterable.forEach(function (value) {
|
||||
representation += `${stringify(value)},`;
|
||||
});
|
||||
|
||||
representation = slice(representation, 0, -1);
|
||||
|
|
@ -65,7 +65,7 @@ function genericIterableToString(iterable) {
|
|||
* @returns {string} A string representation of `item`
|
||||
*/
|
||||
function stringify(item) {
|
||||
return typeof item === "string" ? "'" + item + "'" : valueToString(item);
|
||||
return typeof item === "string" ? `'${item}'` : valueToString(item);
|
||||
}
|
||||
|
||||
module.exports = iterableToString;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue