UNPKG

aneka

Version:

Some usefull function helper for daily use

12 lines (10 loc) 248 B
function includes (matcher = [], array = []) { if (typeof matcher === 'string') matcher = [matcher] let found = false for (const m of matcher) { found = array.includes(m) if (found) break } return found } export default includes