O
Size: a a a
O
O
O
tr
WR
match(source
[[1,2,3], () => {}],
[[2,3,4], () => {}],
)
let match = (s, ...arr) => {
arr.forEach(e => e[0].some(p => s.includes(p)) && e[1]())
}
let source = "5";
match(source,
[[1,2,3], () => { console.log("1") }],
[[4,5,6], () => { console.log("2") }],
)
tr
let match = (s, ...arr) => {
arr.forEach(e => e[0].some(p => s.includes(p)) && e[1]())
}
let source = "5";
match(source,
[[1,2,3], () => { console.log("1") }],
[[4,5,6], () => { console.log("2") }],
)WR
ИШ
tr
ИШ
tr
tr
WR
#