Skip to content

Commit

Permalink
no need to slice() part arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
oyejorge committed Sep 17, 2022
1 parent 3d8136e commit abf7301
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,9 @@ const inSequences = (needle_seq, sequences) => {
}


let partsa = seq.parts.slice(0);
let needle_parts = needle_seq.parts.slice(0);
let needle_parts = needle_seq.parts;

let filtered = partsa.filter( (part) =>{
let filtered = seq.parts.filter( (part) =>{
for( let j = 0; j < needle_parts.length; j++ ){
let needle_part = needle_parts[j];

Expand Down

0 comments on commit abf7301

Please sign in to comment.