format
This commit is contained in:
parent
7294cd5443
commit
ae32743f12
1 changed files with 4 additions and 2 deletions
|
|
@ -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()) {
|
export function register(name, func, patternify = true, preserveSteps = false, join = (x) => x.innerJoin()) {
|
||||||
if (isPattern(name)) {
|
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)) {
|
if (Array.isArray(name)) {
|
||||||
const result = {};
|
const result = {};
|
||||||
for (const name_item of name) {
|
for (const name_item of name) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue