How to use the isString function from util

Find comprehensive JavaScript util.isString code examples handpicked from public code repositorys.

70
71
72
73
74
75
76
77
78
79
  // true
```


<div id="isString" class="anchor"></div>
## util.isString(object)

> 稳定度:0 - 已废弃

如果给定的 'object' 是 `String`,返回 `true`。否则,返回 `false`。
fork icon21
star icon99
watch icon2

+ 3 other calls in file

57
58
59
60
61
62
63
64
65
66


var debug = util.debuglog('net');

function isPipeName(s) {
  return util.isString(s) && toNumber(s) === false;
}


exports.createServer = function() {
fork icon0
star icon11
watch icon3