From 954583f3d56fbfb60321725f13ad092e536e3737 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Nov 2018 22:10:16 +0100 Subject: Removed node_modules --- node_modules/locutus/php/var/is_scalar.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 node_modules/locutus/php/var/is_scalar.js (limited to 'node_modules/locutus/php/var/is_scalar.js') diff --git a/node_modules/locutus/php/var/is_scalar.js b/node_modules/locutus/php/var/is_scalar.js deleted file mode 100644 index 16df4c4..0000000 --- a/node_modules/locutus/php/var/is_scalar.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -module.exports = function is_scalar(mixedVar) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/is_scalar/ - // original by: Paulo Freitas - // example 1: is_scalar(186.31) - // returns 1: true - // example 2: is_scalar({0: 'Kevin van Zonneveld'}) - // returns 2: false - - return (/boolean|number|string/.test(typeof mixedVar === "undefined" ? "undefined" : _typeof(mixedVar)) - ); -}; -//# sourceMappingURL=is_scalar.js.map \ No newline at end of file -- cgit v1.2.3