Files
react-native-devtools-frontend/node_modules/is-string
Nikolay Vitkov c0863472f0 Update node_module packages
Update packages to new versions to keep up with changes.

Submitting directly after passing CQ dry run as the other blocking checks are not correct as that is third_party code.

Bug: none
Change-Id: I64aa8f9137ce2625254013a4637b90bd12fdb568
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6765543
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2025-07-18 04:37:11 -07:00
..
2021-07-30 11:02:26 +00:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2021-07-30 11:02:26 +00:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00

is-string Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

var isString = require('is-string');
var assert = require('assert');

assert.notOk(isString(undefined));
assert.notOk(isString(null));
assert.notOk(isString(false));
assert.notOk(isString(true));
assert.notOk(isString(function () {}));
assert.notOk(isString([]));
assert.notOk(isString({}));
assert.notOk(isString(/a/g));
assert.notOk(isString(new RegExp('a', 'g')));
assert.notOk(isString(new Date()));
assert.notOk(isString(42));
assert.notOk(isString(NaN));
assert.notOk(isString(Infinity));
assert.notOk(isString(new Number(42)));

assert.ok(isString('foo'));
assert.ok(isString(Object('foo')));

Tests

Simply clone the repo, npm install, and run npm test