If you have an array of strings in Javascript, is there a way to identify the common prefix among all the strings and then remove that prefix from each string?
For instance:
["05098701", "05012302", "0545621", "0509301"]
The common prefix in this case would be "05"
The resulting array after removing the common prefix would be
["098701", "012302", "45621", "09301"]