UNPKG
@produck/json-index-archive
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
@produck/json-index-archive
/
src
/
FileSystem
/
Implement
/
Exists.mjs
8 lines
(6 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import { ROOT }
from
'../Abstract.mjs'
; import *
as
Pathname
from
'../Pathname.mjs'
;
/**
@param
{import('../Constructor.mjs').FileSystem} self */
export
default
(
self
, pathname) => {
return
self
[ROOT].
find
(...Pathname.
parse
(pathname)) ===
null
?
false
:
true
; };