2023-11-10 12:06:40 +03:00
import { ArrayExtensions } from "./array" ;
2023-11-10 21:43:57 +03:00
import { StringExtensions } from "./string" ;
2023-11-10 12:06:40 +03:00
2023-11-10 21:43:57 +03:00
declare global {
interface Array < T > {
// @strict: The parameter is determined whether the arrays must be exactly the same in content and order of this relationship or simply follow the same requirements.
equals ( array : Array < T > , strict : boolean ) : boolean ;
lastElement ( ) : T | undefined ;
isEmpty ( ) : boolean ;
}
interface String {
isEmpty ( ) : boolean ;
}
2023-11-10 12:06:40 +03:00
}
2023-11-10 21:43:57 +03:00
export const extensions = ( ) = > {
ArrayExtensions ( ) ;
StringExtensions ( ) ;
} ;