From 97a0389bcd175d3a7edcaf56a1b51a20b4af3866 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 14 May 2014 07:42:17 -0400 Subject: [PATCH] refactor(util) checkExt: reduce -> join --- lib/util.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/util.js b/lib/util.js index bab8a0ff..5e6dc534 100644 --- a/lib/util.js +++ b/lib/util.js @@ -1,8 +1,3 @@ -/* - * Licensed under MIT License http://www.opensource.org/licenses/mit-license - * Module contain additional system functional - */ - (function(scope) { 'use strict'; @@ -106,14 +101,7 @@ break; case 'array': - str = ext.reduce(function(prev, cur) { - var ret; - - ret = prev + cur + '|'; - - return ret; - }, ''); - + str = ext.join('|'); isMatch = Util.checkExt(name, str); break;