diff options
Diffstat (limited to 'node_modules/locutus/php/array/array_flip.js.map')
-rw-r--r-- | node_modules/locutus/php/array/array_flip.js.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/array/array_flip.js.map b/node_modules/locutus/php/array/array_flip.js.map new file mode 100644 index 0000000..0fd52ad --- /dev/null +++ b/node_modules/locutus/php/array/array_flip.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/php/array/array_flip.js"],"names":["module","exports","array_flip","trans","key","tmpArr","hasOwnProperty"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,UAAT,CAAqBC,KAArB,EAA4B;AAAE;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,GAAJ;AACA,MAAIC,SAAS,EAAb;;AAEA,OAAKD,GAAL,IAAYD,KAAZ,EAAmB;AACjB,QAAI,CAACA,MAAMG,cAAN,CAAqBF,GAArB,CAAL,EAAgC;AAC9B;AACD;AACDC,WAAOF,MAAMC,GAAN,CAAP,IAAqBA,GAArB;AACD;;AAED,SAAOC,MAAP;AACD,CAnBD","file":"array_flip.js","sourcesContent":["module.exports = function array_flip (trans) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/array_flip/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Pier Paolo Ramon (http://www.mastersoup.com/)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // example 1: array_flip( {a: 1, b: 1, c: 2} )\n // returns 1: {1: 'b', 2: 'c'}\n\n var key\n var tmpArr = {}\n\n for (key in trans) {\n if (!trans.hasOwnProperty(key)) {\n continue\n }\n tmpArr[trans[key]] = key\n }\n\n return tmpArr\n}\n"]}
\ No newline at end of file |