-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Is there any reason to write find() function in this way?
const result = [];
const docs = text.match(GOOGLE_DOCS_REGEXP);
result.push(...docs);
return result;
I've tested this function with some different cases and I didn't find any reason to write this function in this way. It can be done much easier:
const result = text.match(GOOGLE_DOCS_REGEXP);
return result;
Metadata
Metadata
Assignees
Labels
No labels