Closed ObsidianTTRPGProject closed 11 months ago
Can do!
The code sample in the issue has brought to mind that I need to make some decisions on how to handle when a non-string is provided to string-based helpers.
The sample code provides a fallback for the text and for the separator.
String.prototype.split()
function does not default separator
to ','
when separator
is not provided. I'm more apt to mimic this behavior rather than provide a default.Check out the resulting code and let me know if you have any thoughts on this.
Thank you. This works perfectly!
Can you please add:
Split {{split}} Split string by the given character.
Params string {String}: The string to split. returns {String} character: Default is an empty string. Example
Example {{split "a,b,c" ","}}
Helper