add default layout

This commit is contained in:
Pacharapol Withayasakpunt committed 2020-02-28 02:28:32 +07:00
1 parent abcfddfab8
commit c2ae07be06
11 files changed
+176 -50

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
export function normalizeArray<T> (a: T | T[]): T | undefined {
return Array.isArray(a) ? a[0] : a
}