Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
e80d059fbThis file is pinned to the selected release. Download the original to open it in your design tool.
const searchUserData = (object, key, value) => {
let match
object.traverse(obj => {
if (match) return
if (obj.userData[key] === value) {
match = obj
return
}
})
return match
}
module.exports = { searchUserData }