From 32315f735aff58d1529b03f7213eb4664923d0ab Mon Sep 17 00:00:00 2001 From: DEEPAK KUMAR MANDAL Date: Sun, 4 Aug 2024 22:54:02 +0530 Subject: [PATCH] text --- src/components/ui/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/ui/index.ts b/src/components/ui/index.ts index cd279fa..59006bb 100644 --- a/src/components/ui/index.ts +++ b/src/components/ui/index.ts @@ -1,3 +1,11 @@ +/* eslint-disable no-unused-vars */ +/* eslint-disable @typescript-eslint/no-unsafe-member-access */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +function endsWith(x: string, y: string) { + const index = x.lastIndexOf(y); + return x.lastIndexOf(y) === x.length - y.length; +} + export { Block } from "./Block"; export { Container } from "./Container"; export { Flex } from "./Flex";