Skip to content
Subhajit Sahu edited this page May 5, 2020 · 1 revision

Check if value is string.

const is = require('@extra-string/is');
// is(<value>)

is('panini');
// true
is("valmiki");
// true
is(String('vyasa'));
// true
is({shakespeare: 'literature'});
// false
is(71811313518);
// false (what's this?)
is();
// false

extra-string

Clone this wiki locally