16 lines
316 B
JavaScript
16 lines
316 B
JavaScript
export function log (...args) {
|
|
console.log(
|
|
'%c[elstat]%c',
|
|
'color: purple; font-weight: bold',
|
|
'color: inherit; font-weight: inherit',
|
|
...args,
|
|
)
|
|
}
|
|
|
|
export function objectFromEntries (entries) {
|
|
return entries.reduce(
|
|
(object, [key, value]) => ({ ...object, [key]: value }),
|
|
{}
|
|
)
|
|
}
|