mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
MISC: Remove isString utility function (#1185)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user