Remove line breaks in arrays
This commit is contained in:
		@ -42,10 +42,7 @@ export function setAttributes(element, attributes) {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Object.entries(attributes).forEach(([
 | 
			
		||||
        key,
 | 
			
		||||
        value,
 | 
			
		||||
    ]) => {
 | 
			
		||||
    Object.entries(attributes).forEach(([key, value]) => {
 | 
			
		||||
        element.setAttribute(key, value);
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -30,10 +30,7 @@ export function buildUrlParams(input) {
 | 
			
		||||
    const params = new URLSearchParams();
 | 
			
		||||
 | 
			
		||||
    if (is.object(input)) {
 | 
			
		||||
        Object.entries(input).forEach(([
 | 
			
		||||
            key,
 | 
			
		||||
            value,
 | 
			
		||||
        ]) => {
 | 
			
		||||
        Object.entries(input).forEach(([key, value]) => {
 | 
			
		||||
            params.set(key, value);
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user