push
github
89 of 96 branches covered (92.71%)
Branch coverage included in aggregate %.
158 of 163 relevant lines covered (96.93%)
595.21 hits per line
1 |
'use strict';
|
|
2 |
|
|
3 |
function isString(value) { |
|
4 |
if (typeof value === 'string') { |
|
5 |
return true; |
2,988✔ |
6 |
} |
|
7 |
if (Object.prototype.toString.call(value) === '[object String]') { |
|
8 |
return true; |
× |
9 |
} |
|
10 |
return false; |
2,124✔ |
11 |
} |
|
12 |
|
|
13 |
module.exports = isString; |
12✔ |