Commit bb9787735032023bb81d4f2aa4895ddfc3342f03
1 parent
d6cdee44
remove getCommonString function
Showing
1 changed file
with
0 additions
and
12 deletions
Show diff stats
src/utils/assist.js
... | ... | @@ -324,15 +324,3 @@ export function setMatchMedia () { |
324 | 324 | window.matchMedia = window.matchMedia || matchMediaPolyfill; |
325 | 325 | } |
326 | 326 | } |
327 | - | |
328 | -export function getCommonString (arr1, arr2) { | |
329 | - const len1 = arr1.length; | |
330 | - const len2 = arr2.length; | |
331 | - let i = -1; | |
332 | - const len = Math.min(len1, len2); | |
333 | - let res = []; | |
334 | - while (++i < len) { | |
335 | - if (arr1.indexOf(arr2[i]) >= 0) res.push(arr2[i]); | |
336 | - } | |
337 | - return res; | |
338 | -} | ... | ... |