return null
}
+// Avoid conflict with other toArray() functions
+function arrayify <T> (element: T | T[]) {
+ if (Array.isArray(element)) return element
+
+ return [ element ]
+}
+
+// Avoid conflict with other uniq() functions
+function uniqify <T> (elements: T[]) {
+ return Array.from(new Set(elements))
+}
+
export {
- findCommonElement
+ uniqify,
+ findCommonElement,
+ arrayify
}