Puts a . in front of name if one is not already there.
If there are multiple dots in front of name, then all dots but one is removed.
The candidate extension
The candidate prepended by a single dot. If candidate is undefined, null, the empty string, white space, or nothing but dots, then the empty string is returned.
// Outputs .zipcastExtension('zip');// Outputs .zipcastExtension('.zip');// Outputs .zipcastExtension('...zip'); Copy
// Outputs .zipcastExtension('zip');// Outputs .zipcastExtension('.zip');// Outputs .zipcastExtension('...zip');
Puts a . in front of name if one is not already there.
If there are multiple dots in front of name, then all dots but one is removed.