Question whether a variable is type_string

type:string?($variable)

type:string?('hi')   #=> true
type:string?('')     #=> true
# note: a number inside a string is still a string
type:string?('23')   #=> true
type:string?([])     #=> false
type:string?(1)      #=> false
type:string?(null)   #=> false

Copyright ©2013-2022 SunSed®. All rights reserved.