This code results with "This variable has not been assigned a value. Specifically: String".
Code: Select all
String_IsBlank( str )
{
if str ~= "^\s*$"
{
return true
}
return false
}
String.Prototype.DefineMethod( "IsBlank", (str) => String_IsBlank(str) )
String.Prototype.DefineProp( "Length", { get: (str) => StrLen(str) } )