Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

is-string-primitive

check if a value is string primitive.

installation

you know how to install a package. probably.

usage

constassert=require("assert-fn")// assert stuffconstisString=require("@is-(unknown)/is-string")assert(isString("THIS IS A STRING"))assert(!isString(newString("this is a string, but its an object string, not a string primitive")))assert(!isString(84))assert(!isString(/thisisnotastringeventhoughitcontainstext-it'saregex,whichistechnicallyanobjectforsomereason/))

license

Unlicense. do whatever you want