Skip to content

Commit

Permalink
all too easy via diff (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve authored Apr 2, 2020
1 parent 92a2b5e commit 19701c7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ssv.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,7 @@
}

function all(ssv, search) {
search = split(search)
var l = search.length
if (!l) return true
ssv = split(ssv)
var n = ssv.length
ask:for (var i = 0; i < l; i++) {
for (var j = 0; j < n; j++) if (ssv[j] === search[i]) continue ask
return false
}
return true
return !diff(search, ssv)
}

function concat(ssv, more) {
Expand Down

0 comments on commit 19701c7

Please sign in to comment.