@@ -48,7 +48,7 @@ module.exports.missing = function (pkg, deps, options) {
4848  var  missing  =  [ ] 
4949  var  config  =  configure ( pkg ,  options ) 
5050
51-   deps . map ( function   ( used )  { 
51+   deps . map ( used   =>  { 
5252    if  ( config . allDeps . indexOf ( used )  ===  - 1  &&  config . ignore . indexOf ( used )  ===  - 1 )  { 
5353      missing . push ( used ) 
5454    } 
@@ -61,7 +61,7 @@ module.exports.extra = function (pkg, deps, options) {
6161  var  missing  =  [ ] 
6262  var  config  =  configure ( pkg ,  options ) 
6363
64-   config . allDeps . map ( function   ( dep )  { 
64+   config . allDeps . map ( dep   =>  { 
6565    if  ( deps . indexOf ( dep )  ===  - 1  &&  config . ignore . indexOf ( dep )  ===  - 1 )  { 
6666      missing . push ( dep ) 
6767    } 
@@ -91,11 +91,11 @@ function getExtensions (extensions, detective) {
9191  } 
9292
9393  if  ( Array . isArray ( extensions ) )  { 
94-     extensions . forEach ( function   ( extension )  { 
94+     extensions . forEach ( extension   =>  { 
9595      result [ extension ]  =  getDetective ( detective ) 
9696    } ) 
9797  }  else  if  ( typeof  extensions  ===  'object' )  { 
98-     Object . keys ( extensions ) . forEach ( function   ( extension )  { 
98+     Object . keys ( extensions ) . forEach ( extension   =>  { 
9999      result [ extension ]  =  getDetective ( extensions [ extension ]  ||  detective ) 
100100    } ) 
101101  } 
@@ -152,7 +152,7 @@ function parse (opts) {
152152    if  ( typeof  pkg . bin  ===  'string' )  { 
153153      paths . push ( path . resolve ( path . join ( path . dirname ( pkgPath ) ,  pkg . bin ) ) ) 
154154    }  else  { 
155-       Object . keys ( pkg . bin ) . forEach ( function   ( cmdName )  { 
155+       Object . keys ( pkg . bin ) . forEach ( cmdName   =>  { 
156156        var  cmd  =  pkg . bin [ cmdName ] 
157157        paths . push ( path . resolve ( path . join ( path . dirname ( pkgPath ) ,  cmd ) ) ) 
158158      } ) 
@@ -162,7 +162,7 @@ function parse (opts) {
162162  // pass in custom additional entries e.g. ['./test.js'] 
163163  if  ( opts . entries )  { 
164164    if  ( typeof  opts . entries  ===  'string' )  opts . entries  =  [ opts . entries ] 
165-     opts . entries . forEach ( function   ( entry )  { 
165+     opts . entries . forEach ( entry   =>  { 
166166      entry  =  path . resolve ( path . join ( path . dirname ( pkgPath ) ,  entry ) ) 
167167      if  ( paths . indexOf ( entry )  ===  - 1 )  { 
168168        paths . push ( entry ) 
@@ -178,8 +178,8 @@ function parse (opts) {
178178    . then ( allDeps  =>  { 
179179      var  used  =  { } 
180180      // merge all deps into one unique list 
181-       allDeps . forEach ( function   ( deps )  { 
182-         Object . keys ( deps ) . forEach ( function   ( dep )  { 
181+       allDeps . forEach ( deps   =>  { 
182+         Object . keys ( deps ) . forEach ( dep   =>  { 
183183          used [ dep ]  =  true 
184184        } ) 
185185      } ) 
@@ -223,7 +223,7 @@ function parse (opts) {
223223      . then ( contents  =>  { 
224224        var  requires  =  detective ( contents ) 
225225        var  relatives  =  [ ] 
226-         requires . map ( function   ( req )  { 
226+         requires . map ( req   =>  { 
227227          var  isCore  =  builtins . indexOf ( req )  >  - 1 
228228          if  ( isNotRelative ( req )  &&  ! isCore )  { 
229229            // require('foo/bar') -> require('foo') 
0 commit comments