MCPcopy Create free account
hub / github.com/unconed/TermKit / isString

Function isString

Node/shell/meta.js:9–11  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

7
8// Is x a string?
9function isString(x) {
10 return (isObject(x) || typeof x == 'string') && x.constructor == ''.constructor;
11}
12
13// Is x an array?
14function isArray(x) {

Callers 1

meta.jsFile · 0.85

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected