Add target selector (#7864)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Bram Kragten
2020-12-02 12:10:31 +01:00
committed by GitHub
parent c485ea9d7b
commit 25f7cbea5a
20 changed files with 1224 additions and 63 deletions

View File

@@ -0,0 +1,6 @@
export const ensureArray = (value?: any) => {
if (!value || Array.isArray(value)) {
return value;
}
return [value];
};