mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-31 13:21:52 -04:00
format
This commit is contained in:
@@ -1742,9 +1742,11 @@ export const func = curry((a, b) => reify(b).func(a));
|
||||
*/
|
||||
export function register(name, func, patternify = true, preserveSteps = false, join = (x) => x.innerJoin()) {
|
||||
if (isPattern(name)) {
|
||||
throw new Error("Name argument for register is a pattern, try using single quotes ('name') instead of double quotes (\"name\")");
|
||||
throw new Error(
|
||||
'Name argument for register is a pattern, try using single quotes (\'name\') instead of double quotes ("name")',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if (Array.isArray(name)) {
|
||||
const result = {};
|
||||
for (const name_item of name) {
|
||||
|
||||
Reference in New Issue
Block a user