summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/var/strval.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/var/strval.js.map')
-rw-r--r--node_modules/locutus/php/var/strval.js.map1
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/var/strval.js.map b/node_modules/locutus/php/var/strval.js.map
deleted file mode 100644
index 4661716..0000000
--- a/node_modules/locutus/php/var/strval.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["../../../src/php/var/strval.js"],"names":["module","exports","strval","str","gettype","require","type"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,GAAjB,EAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,UAAUC,QAAQ,gBAAR,CAAd;AACA,MAAIC,OAAO,EAAX;;AAEA,MAAIH,QAAQ,IAAZ,EAAkB;AAChB,WAAO,EAAP;AACD;;AAEDG,SAAOF,QAAQD,GAAR,CAAP;;AAEA;AACA;AACA,UAAQG,IAAR;AACE,SAAK,SAAL;AACE,UAAIH,QAAQ,IAAZ,EAAkB;AAChB,eAAO,GAAP;AACD;AACD,aAAO,EAAP;AACF,SAAK,OAAL;AACE,aAAO,OAAP;AACF,SAAK,QAAL;AACE,aAAO,QAAP;AATJ;;AAYA,SAAOA,GAAP;AACD,CAhCD","file":"strval.js","sourcesContent":["module.exports = function strval (str) {\n // discuss at: http://locutus.io/php/strval/\n // original by: Brett Zamir (http://brett-zamir.me)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // example 1: strval({red: 1, green: 2, blue: 3, white: 4})\n // returns 1: 'Object'\n\n var gettype = require('../var/gettype')\n var type = ''\n\n if (str === null) {\n return ''\n }\n\n type = gettype(str)\n\n // Comment out the entire switch if you want JS-like\n // behavior instead of PHP behavior\n switch (type) {\n case 'boolean':\n if (str === true) {\n return '1'\n }\n return ''\n case 'array':\n return 'Array'\n case 'object':\n return 'Object'\n }\n\n return str\n}\n"]} \ No newline at end of file