Movk Core
joinPath
将一个片段数组组合回一个规范化的路径字符串。
import { joinPath } from '@movk/core' joinPath(['a', 'b', 0, 'c']) // => "a.b[0].c" joinPath(['a', 'key with.dot']) // => "a['key with.dot']"
joinPath(segments: (string | number)[]): string
isValidContainer
检查一个值是否为有效的容器(对象或数组)。
setPath
根据路径在一个对象中设置深层嵌套的属性值。
页面导航
社区