check if a value is string primitive.
you know how to install a package. probably.
const assert = require("assert-fn") // assert stuff
const isString = require("@is-(unknown)/is-string")
assert(isString("THIS IS A STRING"))
assert(!isString(new String("this is a string, but its an object string, not a string primitive")))
assert(!isString(84))
assert(!isString(/this is not a string even though it contains text - it's a regex, which is technically an object for some reason/))Unlicense. do whatever you want