Skip to content

rootOfPath(roots, target): SkillRoot | undefined

判断路径是否落在某个根内,返回该根

Parameters ​

roots ​

readonly SkillRoot[]

target ​

string

Returns ​

SkillRoot | undefined

Released under the MIT License with love.