summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/strncmp.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/strings/strncmp.js.map')
-rw-r--r--node_modules/locutus/php/strings/strncmp.js.map1
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/strings/strncmp.js.map b/node_modules/locutus/php/strings/strncmp.js.map
deleted file mode 100644
index bda6178..0000000
--- a/node_modules/locutus/php/strings/strncmp.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["../../../src/php/strings/strncmp.js"],"names":["module","exports","strncmp","str1","str2","lgth","s1","substr","s2"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,IAAlB,EAAwBC,IAAxB,EAA8BC,IAA9B,EAAoC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,KAAK,CAACH,OAAO,EAAR,EACNI,MADM,CACC,CADD,EACIF,IADJ,CAAT;AAEA,MAAIG,KAAK,CAACJ,OAAO,EAAR,EACNG,MADM,CACC,CADD,EACIF,IADJ,CAAT;;AAGA,SAASC,OAAOE,EAAR,GAAc,CAAd,GAAoBF,KAAKE,EAAN,GAAY,CAAZ,GAAgB,CAAC,CAA5C;AACD,CAlBD","file":"strncmp.js","sourcesContent":["module.exports = function strncmp (str1, str2, lgth) {\n // discuss at: http://locutus.io/php/strncmp/\n // original by: Waldo Malqui Silva (http://waldo.malqui.info)\n // input by: Steve Hilder\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // revised by: gorthaur\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // example 1: strncmp('aaa', 'aab', 2)\n // returns 1: 0\n // example 2: strncmp('aaa', 'aab', 3 )\n // returns 2: -1\n\n var s1 = (str1 + '')\n .substr(0, lgth)\n var s2 = (str2 + '')\n .substr(0, lgth)\n\n return ((s1 === s2) ? 0 : ((s1 > s2) ? 1 : -1))\n}\n"]} \ No newline at end of file