import { ObjectType } from './type-helpers'
/**
* @description Performs a shallow comparison between two objects of the same type.
* It checks if both objects have the same keys and if the values for these keys are the same in both objects.
*
* @template T The type of the objects to compare.
/**
* Returns the unique elements from n arrays.
*
* This function uses the `setDifference` function to find the elements that are in one array but not in the others.
* It uses the `reduce` method to apply this process to each array in turn, starting with the first two arrays and then using their symmetric difference as the starting point for the next call.
*
* @template T The type of the elements in the arrays. It can be any type.
/**
* @description Removes leading plus or minus sign from a string number.
* @param {string} stringNumber - The string number to remove the leading sign from.
* @returns {string} The string number without the leading sign.
*/
export const removeLeadingSign = (stringNumber: string): string =>
stringNumber.replace(/^[+-]+/, '')