*/
export const DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS: WorkerChoiceStrategyOptions =
{
- medRunTime: false
+ medRunTime: false,
+ medWaitTime: false
}
/**
return dataSet[0]
}
const sortedDataSet = dataSet.slice().sort((a, b) => a - b)
- if (sortedDataSet.length % 2 === 0) {
- return sortedDataSet[sortedDataSet.length / 2]
- }
return (
(sortedDataSet[(sortedDataSet.length - 1) >> 1] +
sortedDataSet[sortedDataSet.length >> 1]) /
)
}
+/**
+ * Is the given object a plain object?
+ *
+ * @param obj - The object to check.
+ * @returns `true` if the given object is a plain object, `false` otherwise.
+ */
export const isPlainObject = (obj: unknown): boolean =>
typeof obj === 'object' &&
obj !== null &&