MISC: Remove isString utility function (#1185)

This commit is contained in:
catloversg
2024-03-23 16:46:52 +07:00
committed by GitHub
parent c5581e92bc
commit db226ce0b8
5 changed files with 7 additions and 21 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import { Settings } from "../Settings/Settings";
import { isString } from "./helpers/string";
/*
Converts a date representing time in milliseconds to a string with the format H hours M minutes and S seconds
@@ -75,7 +74,7 @@ function longestCommonStart(strings: string[]): string {
// Returns whether an array contains entirely of string objects
function containsAllStrings(arr: string[]): boolean {
return arr.every(isString);
return arr.every((value) => typeof value === "string");
}
// Generates a random alphanumeric string with N characters