Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getFirstColumn () {
return filter(this.data, one => {
return !one.parent || one.parent === 0 || one.parent === '0'
})
}
getChildren (value) {
return filter(this.data, one => {
return one.parent === value
})
}