bananas-commerce-admin
Version:
What's this, an admin for apes?
18 lines • 580 B
JavaScript
export function selectStyles(...sxs) {
const final = [];
for (const sx of sxs) {
if (Array.isArray(sx)) {
if (sx.filter((v) => typeof v === "boolean").every((v) => v)) {
// If every entry is true
final.concat(sx.filter((v) => typeof v !== "boolean"));
}
}
else if (sx !== undefined) {
final.push(sx);
}
}
return Object.assign({}, ...final.reverse());
}
// Shorthand for select styles helper
export const ss = selectStyles;
//# sourceMappingURL=select_styles.js.map