@php-wasm/universalFunctionsensurePathPrefixensurePathPrefix CallableensurePathPrefix(path: string, prefix: string): stringEnsures the given path has the given prefix.@exampleensurePathPrefix('/bar', '/foo'); // '/foo/bar'ensurePathPrefix('/foo/bar', '/foo'); // '/foo/bar'Parameterspath: stringprefix: stringReturns stringPath with the prefix added.
Ensures the given path has the given prefix.