From 824a2d9f587ca017fc71b84d835e72f54f9c87c4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Nov 2018 18:02:36 +0100 Subject: Began rewrite --- node_modules/locutus/php/var/is_string.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 node_modules/locutus/php/var/is_string.js (limited to 'node_modules/locutus/php/var/is_string.js') diff --git a/node_modules/locutus/php/var/is_string.js b/node_modules/locutus/php/var/is_string.js new file mode 100644 index 0000000..b3560eb --- /dev/null +++ b/node_modules/locutus/php/var/is_string.js @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.2.3