We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9db63df commit 98183e7Copy full SHA for 98183e7
src/utils/common.ts
@@ -5,7 +5,7 @@
5
* @returns Parameter string with array brackets [] removed.
6
*/
7
export const stripArrayTypeIfPresent = (typeString: string) => {
8
- if (typeString?.match(/\S\[\d*\]$/u) !== null) {
+ if (typeString?.match(/\S\[\d*\]$/u)) {
9
return typeString.replace(/\[\d*\]$/gu, '').trim();
10
}
11
return typeString;
0 commit comments