remove getCommonString function
This commit is contained in:
parent
d6cdee4497
commit
bb97877350
1 changed files with 0 additions and 12 deletions
|
@ -324,15 +324,3 @@ export function setMatchMedia () {
|
|||
window.matchMedia = window.matchMedia || matchMediaPolyfill;
|
||||
}
|
||||
}
|
||||
|
||||
export function getCommonString (arr1, arr2) {
|
||||
const len1 = arr1.length;
|
||||
const len2 = arr2.length;
|
||||
let i = -1;
|
||||
const len = Math.min(len1, len2);
|
||||
let res = [];
|
||||
while (++i < len) {
|
||||
if (arr1.indexOf(arr2[i]) >= 0) res.push(arr2[i]);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue