summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/array/array_key_exists.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/array/array_key_exists.js.map')
-rw-r--r--node_modules/locutus/php/array/array_key_exists.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/array/array_key_exists.js.map b/node_modules/locutus/php/array/array_key_exists.js.map
new file mode 100644
index 0000000..db4dbba
--- /dev/null
+++ b/node_modules/locutus/php/array/array_key_exists.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/array/array_key_exists.js"],"names":["module","exports","array_key_exists","key","search","constructor","Array","Object"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,gBAAT,CAA2BC,GAA3B,EAAgCC,MAAhC,EAAwC;AAAE;AACzD;AACA;AACA;AACA;AACA;;AAEA,MAAI,CAACA,MAAD,IAAYA,OAAOC,WAAP,KAAuBC,KAAvB,IAAgCF,OAAOC,WAAP,KAAuBE,MAAvE,EAAgF;AAC9E,WAAO,KAAP;AACD;;AAED,SAAOJ,OAAOC,MAAd;AACD,CAZD","file":"array_key_exists.js","sourcesContent":["module.exports = function array_key_exists (key, search) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/array_key_exists/\n // original by: Kevin van Zonneveld (http://kvz.io)\n // improved by: Felix Geisendoerfer (http://www.debuggable.com/felix)\n // example 1: array_key_exists('kevin', {'kevin': 'van Zonneveld'})\n // returns 1: true\n\n if (!search || (search.constructor !== Array && search.constructor !== Object)) {\n return false\n }\n\n return key in search\n}\n"]} \ No newline at end of file