mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-04 02:37:46 +02:00
✏️ Fix typos
This commit is contained in:
parent
e4d17f5817
commit
f9a382e5d4
|
|
@ -327,7 +327,7 @@ function intersection(value: unknown[], extraArgs: unknown[][]): unknown[] {
|
|||
const [others] = extraArgs;
|
||||
if (!Array.isArray(others)) {
|
||||
throw new ExpressionExtensionError(
|
||||
'difference requires 1 argument that is an array. e.g. .difference([1, 2, 3, 4])',
|
||||
'intersection requires 1 argument that is an array. e.g. .intersection([1, 2, 3, 4])',
|
||||
);
|
||||
}
|
||||
const newArr: unknown[] = [];
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ function removeField(value: object, extraArgs: string[]): object {
|
|||
function removeFieldsContaining(value: object, extraArgs: string[]): object {
|
||||
const [match] = extraArgs;
|
||||
if (typeof match !== 'string') {
|
||||
throw new ExpressionExtensionError('argument of removeFieldsContaining must be an string');
|
||||
throw new ExpressionExtensionError('argument of removeFieldsContaining must be a string');
|
||||
}
|
||||
const newObject = { ...value };
|
||||
for (const [key, val] of Object.entries(value)) {
|
||||
|
|
@ -55,7 +55,7 @@ function removeFieldsContaining(value: object, extraArgs: string[]): object {
|
|||
function keepFieldsContaining(value: object, extraArgs: string[]): object {
|
||||
const [match] = extraArgs;
|
||||
if (typeof match !== 'string') {
|
||||
throw new ExpressionExtensionError('argument of keepFieldsContaining must be an string');
|
||||
throw new ExpressionExtensionError('argument of keepFieldsContaining must be a string');
|
||||
}
|
||||
const newObject = { ...value };
|
||||
for (const [key, val] of Object.entries(value)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user