Skip to content

enterprise-npm-ai/is-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-string-primitive

check if a value is string primitive.

installation

you know how to install a package. probably.

usage

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/))

license

Unlicense. do whatever you want

About

check if a value is a string primitive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published