mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
✨ feat: Checkout Page
:%s
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
export function isMobile() {
|
||||
return window.innerWidth <= 768
|
||||
}
|
||||
|
||||
export function removeItem<T>(arr: Array<T>, value: T): Array<T> {
|
||||
const index = arr.indexOf(value);
|
||||
if (index > -1) {
|
||||
arr.splice(index, 1);
|
||||
}
|
||||
return [...arr];
|
||||
}
|
Reference in New Issue
Block a user