summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/var/is_string.js
blob: b3560eb48c6dfee0030227d7cedc6f17b76a497c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

module.exports = function is_string(mixedVar) {
  // eslint-disable-line camelcase
  //  discuss at: http://locutus.io/php/is_string/
  // original by: Kevin van Zonneveld (http://kvz.io)
  //   example 1: is_string('23')
  //   returns 1: true
  //   example 2: is_string(23.5)
  //   returns 2: false

  return typeof mixedVar === 'string';
};
//# sourceMappingURL=is_string.js.map