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/strings/strncmp.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 node_modules/locutus/php/strings/strncmp.js (limited to 'node_modules/locutus/php/strings/strncmp.js') diff --git a/node_modules/locutus/php/strings/strncmp.js b/node_modules/locutus/php/strings/strncmp.js deleted file mode 100644 index 7bc44ac..0000000 --- a/node_modules/locutus/php/strings/strncmp.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -module.exports = function strncmp(str1, str2, lgth) { - // discuss at: http://locutus.io/php/strncmp/ - // original by: Waldo Malqui Silva (http://waldo.malqui.info) - // input by: Steve Hilder - // improved by: Kevin van Zonneveld (http://kvz.io) - // revised by: gorthaur - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // example 1: strncmp('aaa', 'aab', 2) - // returns 1: 0 - // example 2: strncmp('aaa', 'aab', 3 ) - // returns 2: -1 - - var s1 = (str1 + '').substr(0, lgth); - var s2 = (str2 + '').substr(0, lgth); - - return s1 === s2 ? 0 : s1 > s2 ? 1 : -1; -}; -//# sourceMappingURL=strncmp.js.map \ No newline at end of file -- cgit v1.2.3