Always returns true. Useful as a ready-to-use callback.
true
f
const fileExists = await fs.promises.access(path).then(t, f); Copy
const fileExists = await fs.promises.access(path).then(t, f);
Always returns
true. Useful as a ready-to-use callback.See
f
Example