mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 01:07:01 +08:00
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>
is-string 
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
