4 lines
94 B
JavaScript

module.exports = function (val) {
return typeof val === 'string' || val instanceof String
}