Skip to content

Commit

Permalink
specified absolute filename for package.json
Browse files Browse the repository at this point in the history
Fixes: #5
  • Loading branch information
iSkore committed Nov 25, 2019
1 parent bc71617 commit bf52688
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
*******************************************************************************************************/
'use strict';

const
{ version } = require( './package' ),
{ isArray } = Array;
const { version } = require( './package.json' );

/**
* LightMap
Expand Down Expand Up @@ -414,7 +412,7 @@ class LightMap extends Map

[ Symbol.constructMapByPattern ]( n )
{
return isArray( n ) && n.every( v => isArray( v ) && v.length === 2 ) ? new LightMap( n ) : n;
return Array.isArray( n ) && n.every( v => Array.isArray( v ) && v.length === 2 ) ? new LightMap( n ) : n;
}

[ Symbol.search ]( n )
Expand Down

0 comments on commit bf52688

Please sign in to comment.