Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function names (ids) {
var items = map(ids, api.about.obs.name)
return computed([items], (names) => {
return 'Liked by\n' + names.map((n) => `- ${n}`).join('\n')
})
}
}
return computed(errors, errors => {
if (isString(errors)) errors = [errors]
if (isObject(errors)) errors = toArray(errors)
return h('DarkCrystalErrors', [
title,
h('ul', map(errors, e => {
return h('li', e.toString())
}))
])
})
}
function nameList (prefix, ids) {
var items = map(ids, api.about.obs.name)
return computed([prefix, items], (prefix, names) => {
return (prefix ? (prefix + '\n') : '') + names.map((n) => `- ${n}`).join('\n')
})
}
}