<3

<3
mail@pastecode.io avatar
unknown
javascript
2 years ago
213 B
1
Indexable
Never
const normilize = str => {
    return str
        .split('\n')
        .filter(x => x)
        .map(item => {
            const [key, value] = item.split('\t');
            return {[key]: value}
        });
    
}