Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const for_each_hole = (model, callback) => {
for (const key of ['outer', 'home', 'inner']) {
const route = ['models', 'thumbfan', 'models', key]
callback(m.travel(model, route).result)
}
for (const {name} of columns.slice().reverse()) {
for (const key of ['bottom', 'middle', 'top']) {
const route = ['models', 'matrix', 'models', name, 'models', key]
callback(m.travel(model, route).result)
}
}
}
const get_hole = (model, [col, key]) => {
let route
if (col == 'thumb') {
route = ['models', 'thumbfan', 'models', key,]
} else {
route = ['models', 'matrix', 'models', col, 'models', key]
}
return deepcopy(m.travel(model, route).result)
}