Skip to content

Commit

Permalink
use proper rest arg instead of [].slice
Browse files Browse the repository at this point in the history
  • Loading branch information
benmosher committed Jan 29, 2019
1 parent e72a336 commit d305f6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ExportMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ export default class ExportMap {
/**
* parse docs from the first node that has leading comments
*/
function captureDoc(source, docStyleParsers) {
function captureDoc(source, docStyleParsers, ...nodes) {
const metadata = {}
, nodes = Array.prototype.slice.call(arguments, 1)

// 'some' short-circuits on first 'true'
nodes.some(n => {
Expand Down

0 comments on commit d305f6a

Please sign in to comment.